diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-06-28 17:07:08 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-06-28 17:07:08 +0200 |
commit | e8731c5d013e67ee0153d5a49b38b0e914d14aa0 (patch) | |
tree | ab3611681ec35ea8f10aa7b9a7770c1356b3ef22 /depends | |
parent | 30b1f5e5cf935689fc628e37016e650655153d00 (diff) | |
download | MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar.gz MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar.lz MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.tar.xz MultiMC-e8731c5d013e67ee0153d5a49b38b0e914d14aa0.zip |
Turn screenshot management into a page.
Diffstat (limited to 'depends')
-rw-r--r-- | depends/util/src/pathutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/depends/util/src/pathutils.cpp b/depends/util/src/pathutils.cpp index 20888754..3a964806 100644 --- a/depends/util/src/pathutils.cpp +++ b/depends/util/src/pathutils.cpp @@ -138,10 +138,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)); } |