diff options
Diffstat (limited to 'src/bookmarks')
-rw-r--r-- | src/bookmarks/bookmarkspanel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarkspanel.cpp b/src/bookmarks/bookmarkspanel.cpp index 25aab516..19db148b 100644 --- a/src/bookmarks/bookmarkspanel.cpp +++ b/src/bookmarks/bookmarkspanel.cpp @@ -218,6 +218,7 @@ void BookmarksPanel::deleteBookmark() return; KBookmark bm = bookmarkForIndex(index); + KBookmarkGroup bmg = bm.parentGroup(); bool folder = bm.isGroup(); if (KMessageBox::warningContinueCancel( @@ -232,6 +233,6 @@ void BookmarksPanel::deleteBookmark() return; - bm.parentGroup().deleteBookmark(bm); - Application::instance()->bookmarkProvider()->bookmarkManager()->emitChanged(); + bmg.deleteBookmark(bm); + Application::instance()->bookmarkProvider()->bookmarkManager()->emitChanged(bmg); } |