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
Multimedia
Kdenlive
Commits
3c6ea701
Commit
3c6ea701
authored
Oct 29, 2019
by
Yuri Chornoivan
Committed by
Jean-Baptiste Mardelle
Oct 29, 2019
Browse files
Get rid of deprecated binaryName
parent
1176cdec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dialogs/kdenlivesettingsdialog.cpp
View file @
3c6ea701
...
...
@@ -34,10 +34,10 @@
#include "kdenlive_debug.h"
#include "klocalizedstring.h"
#include <KIO/DesktopExecParser>
#include <KLineEdit>
#include <KMessageBox>
#include <KOpenWithDialog>
#include <KRun>
#include <KService>
#include <QAction>
#include <QDir>
...
...
@@ -725,7 +725,7 @@ void KdenliveSettingsDialog::slotEditAudioApplication()
QPointer
<
KOpenWithDialog
>
dlg
=
new
KOpenWithDialog
(
QList
<
QUrl
>
(),
i18n
(
"Select default audio editor"
),
m_configEnv
.
kcfg_defaultaudioapp
->
text
(),
this
);
if
(
dlg
->
exec
()
==
QDialog
::
Accepted
)
{
service
=
dlg
->
service
();
m_configEnv
.
kcfg_defaultaudioapp
->
setText
(
K
Run
::
binaryName
(
service
->
exec
()
,
false
));
m_configEnv
.
kcfg_defaultaudioapp
->
setText
(
K
IO
::
DesktopExecParser
::
executablePath
(
service
->
exec
()));
}
delete
dlg
;
...
...
@@ -736,7 +736,7 @@ void KdenliveSettingsDialog::slotEditImageApplication()
QPointer
<
KOpenWithDialog
>
dlg
=
new
KOpenWithDialog
(
QList
<
QUrl
>
(),
i18n
(
"Select default image editor"
),
m_configEnv
.
kcfg_defaultimageapp
->
text
(),
this
);
if
(
dlg
->
exec
()
==
QDialog
::
Accepted
)
{
KService
::
Ptr
service
=
dlg
->
service
();
m_configEnv
.
kcfg_defaultimageapp
->
setText
(
K
Run
::
binaryName
(
service
->
exec
()
,
false
));
m_configEnv
.
kcfg_defaultimageapp
->
setText
(
K
IO
::
DesktopExecParser
::
executablePath
(
service
->
exec
()));
}
delete
dlg
;
}
...
...
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