From 619f89bff1ba082ffdc07e93a059d075494a7920 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Wed, 21 Jul 2010 11:55:15 +0200 Subject: Forget to commit this change --- src/bookmarks/bookmarkspanel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bookmarks') 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); } -- cgit v1.2.1