mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Show message when shutting down a secondary instance.
This commit is contained in:
@@ -157,12 +157,14 @@ main( int argc, char *argv[] )
|
|||||||
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
|
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
|
||||||
QObject::connect( &guard, SIGNAL( instanceStarted( KDSingleApplicationGuard::Instance ) ), &a, SLOT( instanceStarted( KDSingleApplicationGuard::Instance ) ) );
|
QObject::connect( &guard, SIGNAL( instanceStarted( KDSingleApplicationGuard::Instance ) ), &a, SLOT( instanceStarted( KDSingleApplicationGuard::Instance ) ) );
|
||||||
|
|
||||||
if ( guard.isPrimaryInstance() )
|
|
||||||
a.init();
|
|
||||||
|
|
||||||
int returnCode = 0;
|
int returnCode = 0;
|
||||||
if ( guard.isPrimaryInstance() )
|
if ( guard.isPrimaryInstance() )
|
||||||
|
{
|
||||||
|
a.init();
|
||||||
returnCode = a.exec();
|
returnCode = a.exec();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
qDebug() << "Tomahawk is already running, shutting down.";
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
// clean up keyboard hook
|
// clean up keyboard hook
|
||||||
|
Reference in New Issue
Block a user