Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
33dc0707
Commit
33dc0707
authored
Aug 18, 2020
by
Ahmad Samir
Committed by
David Faure
Sep 26, 2020
Browse files
Port KRun to ApplicationLauncherJob
parent
62c9bd27
Pipeline
#35643
passed with stage
in 30 minutes and 5 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
ktnef/src/ktnefmain.cpp
View file @
33dc0707
...
...
@@ -43,7 +43,6 @@
#include <KRecentFilesAction>
#include <KConfigGroup>
#include <KRun>
#include <QContextMenuEvent>
#include <QDir>
...
...
@@ -283,7 +282,11 @@ void KTNEFMain::viewFileAs()
list
.
append
(
QUrl
::
fromLocalFile
(
extractTemp
(
mView
->
getSelection
().
at
(
0
))));
if
(
!
list
.
isEmpty
())
{
KRun
::
displayOpenWithDialog
(
list
,
this
);
// Creating ApplicationLauncherJob without any args will invoke the open-with dialog
KIO
::
ApplicationLauncherJob
*
job
=
new
KIO
::
ApplicationLauncherJob
();
job
->
setUrls
(
list
);
job
->
setUiDelegate
(
new
KIO
::
JobUiDelegate
(
KJobUiDelegate
::
AutoHandlingEnabled
,
this
));
job
->
start
();
}
}
else
{
KMessageBox
::
information
(
...
...
Write
Preview
Supports
Markdown
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