Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
b25e9509
Commit
b25e9509
authored
Jul 17, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use QDesktopService
parent
4640fb21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
blogilo/src/mainwindow.cpp
blogilo/src/mainwindow.cpp
+2
-2
pimcommon/webshortcut/webshortcutmenumanager.cpp
pimcommon/webshortcut/webshortcutmenumanager.cpp
+2
-1
No files found.
blogilo/src/mainwindow.cpp
View file @
b25e9509
...
...
@@ -64,7 +64,6 @@
#include <KLocalizedString>
#include <KSelectAction>
#include <kimagefilepreview.h>
#include <KToolInvocation>
#include <QMenu>
#include <QUrl>
...
...
@@ -72,6 +71,7 @@
#include <QProgressBar>
#include <QTimer>
#include <QKeyEvent>
#include <QDesktopServices>
#define TIMEOUT 5000
...
...
@@ -697,7 +697,7 @@ void MainWindow::slotOpenCurrentBlogInBrowser()
if
(
mCurrentBlogId
>
-
1
)
{
QUrl
url
(
DBMan
::
self
()
->
blog
(
mCurrentBlogId
)
->
blogUrl
());
if
(
url
.
isValid
())
{
KToolInvocation
::
invokeBrowser
(
url
.
url
()
);
QDesktopServices
::
openUrl
(
url
);
}
else
{
KMessageBox
::
sorry
(
this
,
i18n
(
"Cannot find current blog URL."
));
}
...
...
pimcommon/webshortcut/webshortcutmenumanager.cpp
View file @
b25e9509
...
...
@@ -16,6 +16,7 @@
*/
#include "webshortcutmenumanager.h"
#include <QDesktopServices>
#include <KToolInvocation>
#include <KUriFilterData>
#include <KStringHandler>
...
...
@@ -107,7 +108,7 @@ void WebShortcutMenuManager::slotHandleWebShortcutAction()
if
(
action
)
{
KUriFilterData
filterData
(
action
->
data
().
toString
());
if
(
KUriFilter
::
self
()
->
filterSearchUri
(
filterData
,
KUriFilter
::
WebShortcutFilter
))
{
KToolInvocation
::
invokeBrowser
(
filterData
.
uri
().
url
());
QDesktopServices
::
openUrl
(
filterData
.
uri
());
}
}
}
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