diff options
author | Jon Ander Peñalba <jonan88@gmail.com> | 2010-08-15 22:47:00 +0200 |
---|---|---|
committer | Jon Ander Peñalba <jonan88@gmail.com> | 2010-08-15 22:47:00 +0200 |
commit | 7a4ea4521e2386c2aa8f67e055abca56bfd93dff (patch) | |
tree | 151515830a2192b000bf054bff2488fefa9bebb7 | |
parent | SVN_SILENT made messages (.desktop file) (diff) | |
download | rekonq-7a4ea4521e2386c2aa8f67e055abca56bfd93dff.tar.xz |
Bug when closing the 'New Folder' dialog fixed.
-rw-r--r-- | src/bookmarks/bookmarkcontextmenu.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarkcontextmenu.cpp b/src/bookmarks/bookmarkcontextmenu.cpp index 96668003..019d9eb9 100644 --- a/src/bookmarks/bookmarkcontextmenu.cpp +++ b/src/bookmarks/bookmarkcontextmenu.cpp @@ -268,8 +268,11 @@ void BookmarkContextMenu::newBookmarkGroup() { KBookmark newBk; newBk = dialog->createNewFolder("New folder", selected.parentGroup()); - selected.parentGroup().moveBookmark(newBk, selected); - manager()->emitChanged(newBk.parentGroup()); + if (!newBk.isNull()) + { + selected.parentGroup().moveBookmark(newBk, selected); + manager()->emitChanged(newBk.parentGroup()); + } } } else |