diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-07-22 00:33:33 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-07-22 00:33:33 +0200 |
commit | c0e3429667be51ce423feb787d3c00dc5c9c1163 (patch) | |
tree | 98d7c03c737e5f55ad351863566880daa02dafe6 | |
parent | Merge commit 'refs/merge-requests/150' of git://gitorious.org/rekonq/mainline (diff) | |
parent | Forget to commit this change (diff) | |
download | rekonq-c0e3429667be51ce423feb787d3c00dc5c9c1163.tar.xz |
Merge commit 'refs/merge-requests/152' of git://gitorious.org/rekonq/mainline
-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); } |