1
0
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:
Leo Franchi 2012-12-08 23:34:24 -05:00
parent de48618b15
commit feef983ef1

View File

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