[rkward] /: Fix loading recent workspace from startup dialog

Thomas Friedrichsmeier null at kde.org
Mon May 14 18:59:30 UTC 2018


Git commit a9cffe9ec9413cb1a56623be067b0cff07248b17 by Thomas Friedrichsmeier.
Committed on 14/05/2018 at 18:59.
Pushed by tfry into branch 'master'.

Fix loading recent workspace from startup dialog

M  +1    -0    ChangeLog
M  +2    -2    rkward/dialogs/startupdialog.cpp

https://commits.kde.org/rkward/a9cffe9ec9413cb1a56623be067b0cff07248b17

diff --git a/ChangeLog b/ChangeLog
index d6c1f185..5c78f261 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
 --- Version 0.7.1 - UNRELEASED
+- Fixed: Loading existing workspace from startup dialog failed silently.
 - Support handling of help:/ pages (e.g. RKWard plugins documentation) inside the RKWard help window, again.
 - Do not attempt object name hinting behind empty quoted strings or spaces.
 - rk.show.message() gains a parameter to allow setting a default button other than "yes"
diff --git a/rkward/dialogs/startupdialog.cpp b/rkward/dialogs/startupdialog.cpp
index 8a87ef47..ceaa0bd4 100644
--- a/rkward/dialogs/startupdialog.cpp
+++ b/rkward/dialogs/startupdialog.cpp
@@ -2,7 +2,7 @@
                           startupdialog  -  description
                              -------------------
     begin                : Thu Aug 26 2004
-    copyright            : (C) 2004, 2011, 2014 by Thomas Friedrichsmeier
+    copyright            : (C) 2004-2018 by Thomas Friedrichsmeier
     email                : thomas.friedrichsmeier at kdemail.net
  ***************************************************************************/
 
@@ -115,7 +115,7 @@ void StartupDialog::accept () {
 			result->result = ChoseFile;
 		} else {
 			result->result = OpenFile;
-			result->open_url = QUrl (item->text ());
+			result->open_url = QUrl::fromLocalFile (item->text ());
 		}
 	} else {
 		RK_ASSERT (false);



More information about the rkward-tracker mailing list