1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 00:09:47 +01:00

Merge pull request #160 from xhochy/fix/url-argument-position

As stated in --help the URL should always be the last argument
This commit is contained in:
Christian Muehlhaeuser 2013-02-08 15:46:59 -08:00
commit df4e9193ec

View File

@ -735,8 +735,8 @@ TomahawkApp::instanceStarted( KDSingleApplicationGuard::Instance instance )
return;
}
QString arg1 = arguments[ 1 ];
if ( loadUrl( arg1 ) )
QString lastArg = arguments[ arguments.size() - 1 ];
if ( loadUrl( lastArg ) )
{
activate();
return;