diff options
Diffstat (limited to 'depends/util/src/pathutils.cpp')
-rw-r--r-- | depends/util/src/pathutils.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/depends/util/src/pathutils.cpp b/depends/util/src/pathutils.cpp index 20888754..1d09fe45 100644 --- a/depends/util/src/pathutils.cpp +++ b/depends/util/src/pathutils.cpp @@ -19,7 +19,6 @@ #include <QDir> #include <QDesktopServices> #include <QUrl> -#include <QDebug> QString PathCombine(QString path1, QString path2) { @@ -138,10 +137,10 @@ void openDirInDefaultProgram(QString path, bool ensureExists) { parentPath.mkpath(dir.absolutePath()); } - QDesktopServices::openUrl("file:///" + dir.absolutePath()); + QDesktopServices::openUrl(QUrl::fromLocalFile(dir.absolutePath())); } void openFileInDefaultProgram(QString filename) { - QDesktopServices::openUrl("file:///" + QFileInfo(filename).absolutePath()); + QDesktopServices::openUrl(QUrl::fromLocalFile(filename)); } |