Make mailto links when used inside the documentation
authorAndy Shaw <andy.shaw@digia.com>
Mon, 16 Dec 2013 08:14:52 +0000 (09:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 16 Dec 2013 08:21:35 +0000 (09:21 +0100)
[ChangeLog][Qt Assistant][Make mailto links work again in Qt Assistant]

Change-Id: Iec15c27bbced7848c800193723399b4e4abc11b9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/assistant/assistant/helpviewer.cpp

index 13c76cb..2a1b615 100644 (file)
@@ -171,7 +171,7 @@ bool HelpViewer::launchWithExternalApp(const QUrl &url)
             actualTmpFile.close();
             return QDesktopServices::openUrl(QUrl(actualTmpFile.fileName()));
         }
-    } else if (url.scheme() == QLatin1String("http")) {
+    } else if (url.scheme() == QLatin1String("http") || url.scheme() == QLatin1String("mailto")) {
         return QDesktopServices::openUrl(url);
     }
     return false;