summaryrefslogtreecommitdiff
path: root/src/bookmarks
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-07-22 00:33:33 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-07-22 00:33:33 +0200
commitc0e3429667be51ce423feb787d3c00dc5c9c1163 (patch)
tree98d7c03c737e5f55ad351863566880daa02dafe6 /src/bookmarks
parentMerge commit 'refs/merge-requests/150' of git://gitorious.org/rekonq/mainline (diff)
parentForget to commit this change (diff)
downloadrekonq-c0e3429667be51ce423feb787d3c00dc5c9c1163.tar.xz
Merge commit 'refs/merge-requests/152' of git://gitorious.org/rekonq/mainline
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/bookmarkspanel.cpp5
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);
}