Skip to content

Commit

Permalink
As stated in --help the URL should always be the last argument
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Feb 7, 2013
1 parent 1359ceb commit 615e2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TomahawkApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 615e2e4

Please sign in to comment.