Commit 66fc95d7 authored by Volker Krause's avatar Volker Krause
Browse files

Fix exporting on non-Android

parent b3e7315f
...@@ -399,7 +399,7 @@ void ApplicationController::exportToFile(const QString &filePath) ...@@ -399,7 +399,7 @@ void ApplicationController::exportToFile(const QString &filePath)
return; return;
} }
File f(filePath); File f(QUrl(filePath).isLocalFile() ? QUrl(filePath).toLocalFile() : filePath);
if (!f.open(File::Write)) { if (!f.open(File::Write)) {
qCWarning(Log) << f.errorString(); qCWarning(Log) << f.errorString();
// TODO show error in UI // TODO show error in UI
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment