From 615e2e422443130b9b3043148dc345100c726d90 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Thu, 7 Feb 2013 18:21:37 +0100 Subject: [PATCH] As stated in --help the URL should always be the last argument --- src/TomahawkApp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TomahawkApp.cpp b/src/TomahawkApp.cpp index c5026fad4..a1c350682 100644 --- a/src/TomahawkApp.cpp +++ b/src/TomahawkApp.cpp @@ -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;