mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
* Fixed about dialog for non debug releases.
This commit is contained in:
@@ -741,11 +741,21 @@ TomahawkWindow::setWindowTitle( const QString& title )
|
|||||||
void
|
void
|
||||||
TomahawkWindow::showAboutTomahawk()
|
TomahawkWindow::showAboutTomahawk()
|
||||||
{
|
{
|
||||||
QMessageBox::about( this, tr( "About Tomahawk" ),
|
QString head, desc;
|
||||||
tr( "<h2><b>Tomahawk %1<br/>(%2)</h2>Copyright 2010 - 2012<br/>Christian Muehlhaeuser <muesli@tomahawk-player.org><br/><br/>"
|
|
||||||
"Thanks to: Leo Franchi, Jeff Mitchell, Dominik Schmidt, Jason Herskowitz, Alejandro Wainzinger, Hugo Lindström, Michael Zanetti, Harald Sitter and Steve Robertson" )
|
#ifdef DEBUG_BUILD
|
||||||
.arg( TomahawkUtils::appFriendlyVersion() )
|
head = tr( "<h2><b>Tomahawk %1<br/>(%2)</h2>" )
|
||||||
.arg( qApp->applicationVersion() ) );
|
.arg( TomahawkUtils::appFriendlyVersion() )
|
||||||
|
.arg( qApp->applicationVersion() );
|
||||||
|
#else
|
||||||
|
head = tr( "<h2><b>Tomahawk %1</h2>" );
|
||||||
|
.arg( TomahawkUtils::appFriendlyVersion() );
|
||||||
|
#endif
|
||||||
|
|
||||||
|
desc = tr( "Copyright 2010 - 2012<br/>Christian Muehlhaeuser <muesli@tomahawk-player.org><br/><br/>"
|
||||||
|
"Thanks to: Leo Franchi, Jeff Mitchell, Dominik Schmidt, Jason Herskowitz, Alejandro Wainzinger, Hugo Lindström, Michael Zanetti, Harald Sitter and Steve Robertson" );
|
||||||
|
|
||||||
|
QMessageBox::about( this, tr( "About Tomahawk" ), head + desc );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user