diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-12 20:50:25 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-08-12 20:54:10 +0200 |
commit | f53b1e3c093e1a2d642644b359ee82325e9e6bd7 (patch) | |
tree | adb86a2f54c5a490960ff2adfb5554ea8d0dbd73 | |
parent | Merge commit 'refs/merge-requests/165' of git://gitorious.org/rekonq/mainline (diff) | |
download | rekonq-f53b1e3c093e1a2d642644b359ee82325e9e6bd7.tar.xz |
Fix the double fill of the bookmark bar at startup
-rw-r--r-- | src/bookmarks/bookmarksmanager.cpp | 6 |
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!"; } |