mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-08 18:12:41 +02:00
Don't crash when calling existing tomahawk instance w/ some tomahawk:// commands
This commit is contained in:
parent
de48618b15
commit
feef983ef1
@ -160,7 +160,7 @@ main( int argc, char *argv[] )
|
||||
if ( guard.isPrimaryInstance() )
|
||||
a.init();
|
||||
|
||||
if ( argc > 1 )
|
||||
if ( !guard.isPrimaryInstance() && argc > 1 )
|
||||
{
|
||||
QString arg = a.arguments()[ 1 ];
|
||||
a.loadUrl( arg );
|
||||
|
Loading…
x
Reference in New Issue
Block a user