[vlc-devel] [PATCH 14/15] qml/PlaylistMediaDisplay: Cancel drag when resetting the model
Benjamin Arnaud
benjamin.arnaud at videolabs.io
Thu Mar 11 09:16:58 UTC 2021
---
modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml b/modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml
index 20a0277184..4a14da18aa 100644
--- a/modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml
+++ b/modules/gui/qt/medialibrary/qml/PlaylistMediaDisplay.qml
@@ -129,6 +129,10 @@ Widgets.NavigableFocusScope {
parentId: initialId
onCountChanged: {
+ // NOTE: We need to cancel the Drag item manually when resetting. Should this be called
+ // from 'onModelReset' only ?
+ dragItem.Drag.cancel();
+
if (count === 0 || modelSelect.hasSelection) return;
resetFocus();
--
2.25.1
More information about the vlc-devel
mailing list