Skip to content

Commit

Permalink
Fix various segfaults etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonocole committed Dec 9, 2010
1 parent 4907f57 commit 02632eb
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions admin/genPluginInfo
Expand Up @@ -36,6 +36,7 @@ cat << EOF
GenPluginList( const GenPluginList& that )
:QList<IPluginInfo*>()
{
*this = that;
}
Expand Down
3 changes: 1 addition & 2 deletions app/audioscrobbler/Wizard/BootstrapPage.cpp
Expand Up @@ -69,8 +69,6 @@ BootstrapPage::BootstrapPage( QWidget* parent )
{
new QVBoxLayout( this );

setTitle( tr( "Hi, %1" ).arg( aApp->currentSession()->userInfo().name()));

#ifdef Q_OS_MAC
QLabel* label = new QLabel( tr( "We recommend importing your listening history from your media player. Please select your prefered option below:"));
#else
Expand All @@ -91,6 +89,7 @@ BootstrapPage::BootstrapPage( QWidget* parent )
void
BootstrapPage::initializePage()
{
setTitle( tr( "Hi, %1" ).arg( aApp->currentSession()->userInfo().name()));
m_psl->refresh();
}

4 changes: 3 additions & 1 deletion app/audioscrobbler/Wizard/WelcomePage.h
Expand Up @@ -31,12 +31,14 @@ class WelcomePage : public QWizardPage
{
// QString username = unicorn::Session().userInfo().name();
QString username = qobject_cast<unicorn::Application*>( qApp )->currentSession()->userInfo().name();

PluginList list;
ui.welcomeLabel->setText(
tr( "<p><strong>Hi %1,<br/>Welcome to the Last.fm Scrobbler</strong>\t\t\t</p>" ).arg( username ) +
tr( "<p>The Scrobbler tracks what you listen to and updates your Last.fm profile.</p>"
"<p>Start listening to some music in %1.</p>"
"<p>If you close the Scrobbler, find it again in your menu bar or with Apple Ctrl Shift + S.</p>" )
.arg( PluginList().availableDescription() ) );
.arg( list.availableDescription() ) );

}

Expand Down
4 changes: 2 additions & 2 deletions plugins/LFMRadio/PluginInfo.h
Expand Up @@ -28,12 +28,12 @@ class UNICORN_DLLEXPORT LFMRadioPluginInfo : public IPluginInfo

IPluginInfo* clone() const{ return new LFMRadioPluginInfo( *this ); }

#ifdef QT_VERSION
#ifdef QT_VERSION
QString pluginInstallPath() const
{
return QString();
}
#endif
#endif

};

Expand Down
1 change: 1 addition & 0 deletions plugins/foobar08/PluginInfo.h
Expand Up @@ -38,6 +38,7 @@ class UNICORN_DLLEXPORT FooBar08PluginInfo : public IPluginInfo
return s.value( "Install Path" ) + "\\components";
#endif
Q_ASSERT( !"There is no windows mediaplayer on non-windows platforms!" );
return "";
}
#endif
};
Expand Down
1 change: 1 addition & 0 deletions plugins/foobar09/PluginInfo.h
Expand Up @@ -37,6 +37,7 @@ class UNICORN_DLLEXPORT FooBar09PluginInfo : public IPluginInfo
return s.value( "Install Path" ) + "\\components";
#endif
Q_ASSERT( !"There is no windows mediaplayer on non-windows platforms!" );
return "";
}
#endif

Expand Down
1 change: 1 addition & 0 deletions plugins/winamp/PluginInfo.h
Expand Up @@ -37,6 +37,7 @@ class UNICORN_DLLEXPORT WinampPluginInfo : public IPluginInfo
return s.value( "Path" ) + "\\Plugins";
#endif
Q_ASSERT( !"There is no winamp on non-windows platforms!" );
return "";
}
#endif

Expand Down
1 change: 1 addition & 0 deletions plugins/wmp/PluginInfo.h
Expand Up @@ -37,6 +37,7 @@ class UNICORN_DLLEXPORT WmpPluginInfo : public IPluginInfo
return s.value( "Path" ) + "\\Plugins";
#endif
Q_ASSERT( !"There is no windows mediaplayer on non-windows platforms!" );
return "";
}
#endif
};
Expand Down

0 comments on commit 02632eb

Please sign in to comment.