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:
parent
4a44a979d4
commit
f9c88532bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user