summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanagiotis Papadopoulos <pano_90@gmx.net>2009-08-14 18:48:29 +0200
committerPanagiotis Papadopoulos <pano_90@gmx.net>2009-08-14 18:48:29 +0200
commit4b97fc06883df0d4be6487b9bf9996674dc40505 (patch)
treed72365772a3ab23df4cec214ca2c7f9cfa7054f4
parentSome work on WebPage class.. (diff)
downloadrekonq-4b97fc06883df0d4be6487b9bf9996674dc40505.tar.xz
Fix crashing, when right-clicking on a bookmark folder in the bookmark
toolbar. Patch by Johannes Zellner, Thanks!
-rw-r--r--src/bookmarks.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bookmarks.cpp b/src/bookmarks.cpp
index c9db4a9b..a1f0e441 100644
--- a/src/bookmarks.cpp
+++ b/src/bookmarks.cpp
@@ -261,6 +261,8 @@ void BookmarkProvider::contextMenu(const QPoint &point)
if (!action)
return;
KMenu *menu = m_bookmarkMenu->viewContextMenu(action);
+ if (!menu)
+ return;
menu->popup(m_bookmarkToolBar->mapToGlobal(point));
}