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:
parent
1468d3c0dc
commit
3aa7f5c9de
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user