[rkward/frameworks] rkward: Fix rkward --reuse

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Sep 28 06:37:53 UTC 2016


Git commit 1cbe3d08a0aa13e4e516a788a2d9f85f74507e5a by Thomas Friedrichsmeier.
Committed on 28/09/2016 at 06:37.
Pushed by tfry into branch 'frameworks'.

Fix rkward --reuse

M  +2    -6    rkward/rkward_startup_wrapper.cpp

http://commits.kde.org/rkward/1cbe3d08a0aa13e4e516a788a2d9f85f74507e5a

diff --git a/rkward/rkward_startup_wrapper.cpp b/rkward/rkward_startup_wrapper.cpp
index 9d0b6f4..b6f8f2a 100755
--- a/rkward/rkward_startup_wrapper.cpp
+++ b/rkward/rkward_startup_wrapper.cpp
@@ -145,12 +145,8 @@ int main (int argc, char *argv[]) {
 			// all RKWard and KDE options (other than --reuse) are of the for --option <value>. So skip over the <value>
 			i++;
 		} else {
-			QUrl url (args[i]);
-			if (url.isRelative ()) {
-				file_args.append (QDir::current ().absoluteFilePath (url.toLocalFile ()));
-			} else {
-				file_args.append (args[i]);
-			}
+			QUrl url = QUrl::fromUserInput (args[i], QDir::currentPath (), QUrl::AssumeLocalFile);
+			file_args.append (url.toString ());
 		}
 	}
 



More information about the rkward-tracker mailing list