1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-21 16:31:58 +02:00

* Show message when shutting down a secondary instance.

This commit is contained in:
Christian Muehlhaeuser 2013-05-04 20:07:58 +02:00
parent 4a44a979d4
commit f9c88532bd

View File

@ -157,12 +157,14 @@ main( int argc, char *argv[] )
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
QObject::connect( &guard, SIGNAL( instanceStarted( KDSingleApplicationGuard::Instance ) ), &a, SLOT( instanceStarted( KDSingleApplicationGuard::Instance ) ) );
if ( guard.isPrimaryInstance() )
a.init();
int returnCode = 0;
if ( guard.isPrimaryInstance() )
{
a.init();
returnCode = a.exec();
}
else
qDebug() << "Tomahawk is already running, shutting down.";
#ifdef Q_OS_WIN
// clean up keyboard hook