[utilities/keepsecret] src/qml: Fix right-click selection

Roshani Kumari <[email protected]> Tue, 4 Aug 2026 13:48:02 +0000 (UTC)
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit cfa5c9deccd38495bafffbb07105c02f9cb184e6 by Roshani Kumari.
Committed on 04/08/2026 at 13:39.
Pushed by roshani into branch 'master'.

Fix right-click selection

M  +2    -2    src/qml/CollectionContentsPage.qml

https://invent.kde.org/utilities/keepsecret/-/commit/cfa5c9deccd38495bafffbb07105c02f9cb184e6

diff --git a/src/qml/CollectionContentsPage.qml b/src/qml/CollectionContentsPage.qml
index 57148c0..2fe9800 100644
--- a/src/qml/CollectionContentsPage.qml
+++ b/src/qml/CollectionContentsPage.qml
@@ -414,14 +414,14 @@ Kirigami.ScrollablePage {
                                 page.selectedCount = 1
                                 page.lastSelectedIndex = index
                                 view.currentIndex = index
-                                App.secretItem.loadItem(App.collectionModel.collectionPath, model.dbusPath)
+                                App.secretItem.close()
                             }
                         } else {
                             page.selectedIndices = []
                             page.selectedCount = 0
                             view.currentIndex = index
                             page.lastSelectedIndex = index
-                            App.secretItem.loadItem(App.collectionModel.collectionPath, model.dbusPath)
+                            App.secretItem.close()
                         }
                         contextMenu.model = model
                         contextMenu.popup(delegate)