From 3878491e1f349fbda798081038cc77f7dbf7870a Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Sun, 12 Dec 2021 19:17:06 +0200 Subject: [PATCH] [app] Reset target view state after failed drop --- app/qml/BooksStorageView.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/qml/BooksStorageView.qml b/app/qml/BooksStorageView.qml index 2dae88f..06afc06 100644 --- a/app/qml/BooksStorageView.qml +++ b/app/qml/BooksStorageView.qml @@ -301,6 +301,9 @@ Item { // This hides the target item until the grag item makes it to the destination: dragItem.dropShelfIndex = currentShelfIndex dragItem.dropItemIndex = targetIndex + } else { + currentShelf.hasDummyItem = false + currentShelf.dummyItemIndex = -1 } } }