Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Dragon
Commits
391eceda
Commit
391eceda
authored
Oct 16, 2022
by
Laurent Montel
Browse files
Adapt to new api (scripted)
parent
f75f0558
Pipeline
#248823
passed with stage
in 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/recentlyPlayedList.cpp
View file @
391eceda
...
...
@@ -21,6 +21,7 @@
#include
<KLocalizedString>
#include
<KMessageBox>
#include
<KSharedConfig>
#include
<kwidgetsaddons_version.h>
//this is a widget for dispaying the recently played items in a list. It is subclassed so that we can hook up a context menu
RecentlyPlayedList
::
RecentlyPlayedList
(
QWidget
*
parent
)
...
...
@@ -121,9 +122,18 @@ void RecentlyPlayedList::itemDoubleClicked(QListWidgetItem* item)
QFileInfo
fileInfo
(
url
.
toLocalFile
()
);
if
(
!
fileInfo
.
exists
()
)
{
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
if
(
KMessageBox
::
questionTwoActions
(
this
,
#else
if
(
KMessageBox
::
questionYesNo
(
this
,
#endif
i18n
(
"This file could not be found. Would you like to remove it from the playlist?"
),
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 100, 0)
i18nc
(
"@title:window"
,
"File not found"
),
KStandardGuiItem
::
remove
(),
KStandardGuiItem
::
cancel
()
)
==
KMessageBox
::
ButtonCode
::
PrimaryAction
)
{
#else
i18nc
(
"@title:window"
,
"File not found"
)
)
==
KMessageBox
::
Yes
)
{
#endif
removeEntry
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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