diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-07-18 19:15:44 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-07-18 19:15:44 +0200 |
commit | 737dd6ec3b8daa1517b392dbad1f13b090e5d33b (patch) | |
tree | 6005c75d4062e5f5a1de6390eb5eb3aa187f005b /src/bookmarks/bookmarkcontextmenu.cpp | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-737dd6ec3b8daa1517b392dbad1f13b090e5d33b.tar.xz |
- Performance improvements (partial updates of the tree)
- Synchronisation of the folded states between each windows
- Code cleanup
Diffstat (limited to 'src/bookmarks/bookmarkcontextmenu.cpp')
-rw-r--r-- | src/bookmarks/bookmarkcontextmenu.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/bookmarks/bookmarkcontextmenu.cpp b/src/bookmarks/bookmarkcontextmenu.cpp index b5df463c..dec4382f 100644 --- a/src/bookmarks/bookmarkcontextmenu.cpp +++ b/src/bookmarks/bookmarkcontextmenu.cpp @@ -212,6 +212,7 @@ void BookmarkContextMenu::copyToClipboard() void BookmarkContextMenu::deleteBookmark() { KBookmark bm = bookmark(); + KBookmarkGroup bmg = bm.parentGroup(); bool folder = bm.isGroup(); QString name = QString(bm.text()).replace("&&", "&"); @@ -226,8 +227,8 @@ void BookmarkContextMenu::deleteBookmark() ) return; - bm.parentGroup().deleteBookmark(bm); - manager()->emitChanged(); + bmg.deleteBookmark(bm); + manager()->emitChanged(bmg); } @@ -266,7 +267,7 @@ void BookmarkContextMenu::newBookmarkGroup() KBookmark newBk; newBk = dialog->createNewFolder("New folder", selected.parentGroup()); selected.parentGroup().moveBookmark(newBk, selected); - manager()->emitChanged(); + manager()->emitChanged(newBk.parentGroup()); } } else @@ -303,7 +304,7 @@ void BookmarkContextMenu::newSeparator() if (!selected.isNull()) parent.moveBookmark(newBk, selected); - manager()->emitChanged(); + manager()->emitChanged(newBk.parentGroup()); } @@ -328,6 +329,6 @@ void BookmarkContextMenu::bookmarkCurrentPage() parent.addBookmark(owner()->currentTitle(), KUrl(owner()->currentUrl()), "text-html"); } - manager()->emitChanged(); + manager()->emitChanged(parent); } |