mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Merge pull request #116 from crabmanX/master
activate main window when application is already running and launched again
This commit is contained in:
@@ -748,7 +748,10 @@ TomahawkApp::instanceStarted( KDSingleApplicationGuard::Instance instance )
|
||||
const QStringList arguments = instance.arguments();
|
||||
|
||||
if ( arguments.size() < 2 )
|
||||
{
|
||||
activate();
|
||||
return;
|
||||
}
|
||||
|
||||
QString arg1 = arguments[ 1 ];
|
||||
if ( loadUrl( arg1 ) )
|
||||
@@ -769,4 +772,6 @@ TomahawkApp::instanceStarted( KDSingleApplicationGuard::Instance instance )
|
||||
AudioEngine::instance()->pause();
|
||||
else if ( arguments.contains( "--stop" ) )
|
||||
AudioEngine::instance()->stop();
|
||||
else
|
||||
activate();
|
||||
}
|
||||
|
Reference in New Issue
Block a user