Commit ad7cbbb9 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Don't allow deleting items when a spacer move operation is running.

BUG: 408434
parent 5b179bed
......@@ -13,7 +13,7 @@ Rectangle {
property bool validMenu: false
property color textColor: activePalette.text
property var groupTrimData
property bool dragInProgress: dragProxyArea.pressed || dragProxyArea.drag.active || groupTrimData !== undefined
property bool dragInProgress: dragProxyArea.pressed || dragProxyArea.drag.active || groupTrimData !== undefined || spacerGroup > -1
signal clipClicked()
signal mousePosChanged(int position)
......
......@@ -501,6 +501,11 @@ int TimelineController::insertComposition(int tid, int position, const QString &
void TimelineController::deleteSelectedClips()
{
if (dragOperationRunning()) {
// Don't allow timeline operation while drag in progress
pCore->displayMessage(i18n("Cannot perform operation while dragging in timeline"), ErrorMessage);
return;
}
auto sel = m_model->getCurrentSelection();
if (sel.empty()) {
// Check if a mix is selected
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment