Commit 0946d392 authored by Martin Straka's avatar Martin Straka

Content uri instead of file uri

parent 6a0ea5de
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="external_files" path="Datovka/Temp/"/>
<file-path name="external_files" path="."/>
</paths>
\ No newline at end of file
......@@ -242,7 +242,10 @@ void Files::openAttachmentFromPath(const QString &filePath)
#else
if (!QDesktopServices::openUrl(QUrl::fromLocalFile(filePath))) {
QUrl contentUri = QUrl::fromLocalFile(filePath);
contentUri.setScheme("content");
if (!QDesktopServices::openUrl(contentUri)) {
Dialogues::errorMessage(Dialogues::CRITICAL,
tr("Open attachment error"),
tr("There is no application to open this file format."),
......
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