[graphics/koko] src/qml/gallery: GalleryPage: Disable drag for non-folder view

Oliver Beard <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 48e0fb282efbc5a8e215032c7e597f12f5477cc5 by Oliver Beard.
Committed on 28/07/2026 at 12:52.
Pushed by olib into branch 'master'.

GalleryPage: Disable drag for non-folder view

Otherwise, we can drag multiple items from disparate folders, or collections (for which, the drag represents the cover item, making no sense).

M  +1    -0    src/qml/gallery/GalleryPage.qml

https://invent.kde.org/graphics/koko/-/commit/48e0fb282efbc5a8e215032c7e597f12f5477cc5

diff --git a/src/qml/gallery/GalleryPage.qml b/src/qml/gallery/GalleryPage.qml
index b26e347b..f3848626 100644
--- a/src/qml/gallery/GalleryPage.qml
+++ b/src/qml/gallery/GalleryPage.qml
@@ -667,6 +667,7 @@ Kirigami.ScrollablePage {
             readonly property bool draggingMultipleSelection: dragItem && dragItem.selected && selectionModel.selectedIndexes.length > 1
             readonly property bool hasDragImage: dragItem && gridView.Drag.active
             acceptedDevices: PointerDevice.Mouse | PointerDevice.TouchPad | PointerDevice.Stylus
+            enabled: page.isFolderView
             target: null
             onActiveChanged: {
                 if (!active) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.