mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user