[qet] [2024] Fixed previous commit so the directory opening also works on Windows with paths that contain spaces .

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2024
Author:   xavier
Date:     2013-02-03 22:15:26 +0100 (Sun, 03 Feb 2013)
Log Message:
-----------
Fixed previous commit so the directory opening also works on Windows with paths that contain spaces.

Modified Paths:
--------------
    trunk/sources/elementspanelwidget.cpp

Modified: trunk/sources/elementspanelwidget.cpp
===================================================================
--- trunk/sources/elementspanelwidget.cpp	2013-02-03 19:25:02 UTC (rev 2023)
+++ trunk/sources/elementspanelwidget.cpp	2013-02-03 21:15:26 UTC (rev 2024)
@@ -201,7 +201,7 @@
 	if (QTreeWidgetItem *qtwi = elements_panel -> currentItem()) {
 		QString dir_path = elements_panel -> dirPathForItem(qtwi);
 		if (!dir_path.isEmpty()) {
-			QDesktopServices::openUrl(dir_path);
+			QDesktopServices::openUrl(QUrl::fromLocalFile(dir_path));
 		}
 	}
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/