Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PIM Messagelib
Commits
1bacd641
Commit
1bacd641
authored
Apr 19, 2017
by
Daniel Vrátil
🤖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle help:/ URLs through QDesktopServices
Launches khelpcenter or browser
parent
2aecb813
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
messageviewer/src/utils/messageviewerutil.cpp
messageviewer/src/utils/messageviewerutil.cpp
+6
-4
No files found.
messageviewer/src/utils/messageviewerutil.cpp
View file @
1bacd641
...
...
@@ -70,6 +70,7 @@
#include <QWidget>
#include <QDBusConnectionInterface>
#include <QActionGroup>
#include <QDesktopServices>
using
namespace
MessageViewer
;
...
...
@@ -96,9 +97,6 @@ bool Util::checkOverwrite(const QUrl &url, QWidget *w)
return
true
;
}
#if defined Q_OS_WIN || defined Q_OS_MACX
#include <QDesktopServices>
#endif
bool
Util
::
handleUrlWithQDesktopServices
(
const
QUrl
&
url
)
{
...
...
@@ -106,7 +104,11 @@ bool Util::handleUrlWithQDesktopServices(const QUrl &url)
QDesktopServices
::
openUrl
(
url
);
return
true
;
#else
Q_UNUSED
(
url
);
// Always handle help through khelpcenter or browser
if
(
url
.
scheme
()
==
QLatin1String
(
"help"
))
{
QDesktopServices
::
openUrl
(
url
);
return
true
;
}
return
false
;
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment