summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/util/qdesktopservices.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/util/qdesktopservices.cpp b/src/gui/util/qdesktopservices.cpp
index 7ca138b1b7d..6f0e42ed57e 100644
--- a/src/gui/util/qdesktopservices.cpp
+++ b/src/gui/util/qdesktopservices.cpp
@@ -177,9 +177,9 @@ bool QDesktopServices::openUrl(const QUrl &url)
qWarning("The platform plugin does not support services.");
return false;
}
- // We only use openDocument if there is no fragment for the URL to
+ // We only use openDocument if there is no fragment or query for the URL to
// avoid it being lost when using openDocument
- if (url.isLocalFile() && !url.hasFragment())
+ if (url.isLocalFile() && !url.hasFragment() && !url.hasQuery())
return platformServices->openDocument(url);
return platformServices->openUrl(url);
}