1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

ITWK-769: Don't activate window for all tomahawk urls, as play controls shouldn't

This commit is contained in:
Leo Franchi 2012-03-18 15:46:07 -04:00
parent 1468d3c0dc
commit 3aa7f5c9de

View File

@ -613,13 +613,15 @@ TomahawkApp::instanceStarted( KDSingleApplicationGuard::Instance instance )
{
tDebug( LOGINFO ) << "Instance started!" << instance.pid << instance.arguments;
activate();
if ( instance.arguments.size() < 2 )
return;
QString arg1 = instance.arguments[ 1 ];
if ( loadUrl( arg1 ) )
{
activate();
return;
}
if ( instance.arguments.contains( "--next" ) )
AudioEngine::instance()->next();