summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@nokia.com>2012-05-09 17:08:15 +0200
committerKarsten Heimrich <karsten.heimrich@nokia.com>2012-05-10 14:04:51 +0200
commitc1fbe9ddb1442df61c83159d71687bad24652175 (patch)
treebfdc92e6e20c89dcedc55a2397c9a525b7f18f66
parent5d92a73c826edb7f8dde9e0141c2fd1ce1cbdacf (diff)
downloadqt-creator-c1fbe9ddb1442df61c83159d71687bad24652175.tar.gz
Let the desktop system handle mailto links.
Task-number: QTCREATORBUG-4058 Change-Id: If48f8150bc05418c3ac0b9e132b84ed7836e08fa Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
-rw-r--r--src/plugins/help/helpviewer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/help/helpviewer.cpp b/src/plugins/help/helpviewer.cpp
index 74dd7ddd95..a7ed56eda4 100644
--- a/src/plugins/help/helpviewer.cpp
+++ b/src/plugins/help/helpviewer.cpp
@@ -145,6 +145,10 @@ bool HelpViewer::launchWithExternalApp(const QUrl &url)
return QDesktopServices::openUrl(QUrl(saver.fileName()));
}
}
+
+ if (url.scheme() == QLatin1String("mailto"))
+ return QDesktopServices::openUrl(url);
+
return false;
}