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
Kdenlive
Commits
70762804
Commit
70762804
authored
Sep 17, 2022
by
Julius Künzel
💬
Browse files
Show message on bin item deletion failure
CCBUG: 459260
parent
ac4795e7
Pipeline
#233538
failed with stage
in 15 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
70762804
...
...
@@ -1798,8 +1798,14 @@ void Bin::slotDeleteClip()
// Ensure we don't delete a parent before a child
// std::sort(items.begin(), items.end(), [](std::shared_ptr<AbstractProjectItem> a, std::shared_ptr<AbstractProjectItem>b) { return a->depth() > b->depth();
// });
QStringList
notDeleted
;
for
(
const
auto
&
item
:
items
)
{
m_itemModel
->
requestBinClipDeletion
(
item
,
undo
,
redo
);
if
(
!
m_itemModel
->
requestBinClipDeletion
(
item
,
undo
,
redo
))
{
notDeleted
<<
item
->
name
();
}
}
if
(
!
notDeleted
.
isEmpty
())
{
KMessageBox
::
errorList
(
this
,
i18n
(
"Some items could not be deleted. Maybe there are instances on locked tracks?"
),
notDeleted
);
}
pCore
->
pushUndo
(
undo
,
redo
,
i18n
(
"Delete bin Clips"
));
}
...
...
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