summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-08-12 20:50:25 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2010-08-12 20:54:10 +0200
commitf53b1e3c093e1a2d642644b359ee82325e9e6bd7 (patch)
treeadb86a2f54c5a490960ff2adfb5554ea8d0dbd73
parentMerge commit 'refs/merge-requests/165' of git://gitorious.org/rekonq/mainline (diff)
downloadrekonq-f53b1e3c093e1a2d642644b359ee82325e9e6bd7.tar.xz
Fix the double fill of the bookmark bar at startup
-rw-r--r--src/bookmarks/bookmarksmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarksmanager.cpp b/src/bookmarks/bookmarksmanager.cpp
index 792baaeb..d9612607 100644
--- a/src/bookmarks/bookmarksmanager.cpp
+++ b/src/bookmarks/bookmarksmanager.cpp
@@ -388,13 +388,15 @@ BookmarkProvider::~BookmarkProvider()
void BookmarkProvider::setupBookmarkBar(BookmarkToolBar *toolbar)
{
+ if (m_bookmarkToolBars.contains(toolbar))
+ return;
+
kDebug() << "new bookmark bar...";
-
+
m_bookmarkToolBars.append(toolbar);
toolbar->setContextMenuPolicy(Qt::CustomContextMenu);
connect(toolbar, SIGNAL(customContextMenuRequested(const QPoint &)), this, SLOT(contextMenu(const QPoint &)));
- slotBookmarksChanged("", "");
kDebug() << "new bookmark bar... DONE!";
}