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

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2024 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2013-02-03 21:15:26 +00:00
parent 6ea0a96bd4
commit 1c140ea0ad

View File

@@ -201,7 +201,7 @@ void ElementsPanelWidget::openDirectoryForSelectedItem() {
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));
}
}
}