Skip to content
Snippets Groups Projects
Commit f705379d authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

messageview: fix openFile for data-transfer interactions

Change-Id: Iacb1bf8f540ea3dbd5cd85e28e24c6ad98a953e0
parent cfc1c80e
Branches
No related tags found
No related merge requests found
...@@ -444,7 +444,11 @@ PrivateBridging::retryInteraction(const QString& arg) ...@@ -444,7 +444,11 @@ PrivateBridging::retryInteraction(const QString& arg)
Q_INVOKABLE int Q_INVOKABLE int
PrivateBridging::openFile(const QString& arg) PrivateBridging::openFile(const QString& arg)
{ {
QDesktopServices::openUrl(arg); QUrl fileUrl("file:///" + arg);
bool ok = QDesktopServices::openUrl(fileUrl);
if (!ok) {
qDebug() << "Couldn't open file: " << fileUrl;
}
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment