summaryrefslogtreecommitdiff
path: root/src/plugins/help/localhelpmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/help/localhelpmanager.cpp')
-rw-r--r--src/plugins/help/localhelpmanager.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/help/localhelpmanager.cpp b/src/plugins/help/localhelpmanager.cpp
index 0a29750b85..8af763f426 100644
--- a/src/plugins/help/localhelpmanager.cpp
+++ b/src/plugins/help/localhelpmanager.cpp
@@ -544,12 +544,9 @@ void LocalHelpManager::updateFilterModel()
bool LocalHelpManager::canOpenOnlineHelp(const QUrl &url)
{
const QString address = url.toString();
- if (address.startsWith("qthelp://org.qt-project.")
- || address.startsWith("qthelp://com.nokia.")
- || address.startsWith("qthelp://com.trolltech.")) {
- return true;
- }
- return false;
+ return address.startsWith("qthelp://org.qt-project.")
+ || address.startsWith("qthelp://com.nokia.")
+ || address.startsWith("qthelp://com.trolltech.");
}
bool LocalHelpManager::openOnlineHelp(const QUrl &url)