1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-19 12:21:52 +02:00

activate main window when application is already running and launched again

This commit is contained in:
Kilian Lackhove
2012-08-27 10:33:02 +02:00
parent 74c2d0e776
commit 62c119d745

View File

@@ -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();
}