summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-08-15 22:47:00 +0200
committerJon Ander Peñalba <jonan88@gmail.com>2010-08-15 22:47:00 +0200
commit7a4ea4521e2386c2aa8f67e055abca56bfd93dff (patch)
tree151515830a2192b000bf054bff2488fefa9bebb7 /src
parentSVN_SILENT made messages (.desktop file) (diff)
downloadrekonq-7a4ea4521e2386c2aa8f67e055abca56bfd93dff.tar.xz
Bug when closing the 'New Folder' dialog fixed.
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/bookmarkcontextmenu.cpp7
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