summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Koller <kollix@aon.at>2016-09-16 04:45:59 (GMT)
committerMartin Koller <kollix@aon.at>2016-09-16 04:45:59 (GMT)
commita7edf13b1be872a4f5ae4035b7897a827ff53c2d (patch)
tree0a7d9beec58474f3e2575a40fd4633bcd5f4334c
parent34901c9474528bc8327bc90b9aaf7bd3f57d43d7 (diff)
Fix QUrl creation with local file path
-rw-r--r--logdialog.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/logdialog.cpp b/logdialog.cpp
index 3773bb7..e02b66c 100644
--- a/logdialog.cpp
+++ b/logdialog.cpp
@@ -486,9 +486,7 @@ void LogDialog::slotOk()
QFile::setPermissions(tempFileName, QFileDevice::ReadOwner);
// open file in preferred editor
- QUrl url;
- url.setPath(tempFileName);
- (void) new KRun(url, 0, true);
+ (void) new KRun(QUrl::fromLocalFile(tempFileName), 0, true);
}
}