From d92f82b200c2c9098cab32c2d9437ee2cfefa720 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Tue, 16 Feb 2010 09:43:56 +0100 Subject: Removed unuseful check (also if sometimes the bookmark toolbar let rekonq misteriously crash...) --- src/bookmarks/bookmarksmanager.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/bookmarksmanager.cpp b/src/bookmarks/bookmarksmanager.cpp index 3aab08ae..cfe26a55 100644 --- a/src/bookmarks/bookmarksmanager.cpp +++ b/src/bookmarks/bookmarksmanager.cpp @@ -219,16 +219,13 @@ void BookmarkProvider::slotBookmarksChanged(const QString &group, const QString if (toolBarGroup.isNull()) return; - if(m_bookmarkToolBar) - { - m_bookmarkToolBar->clear(); // FIXME CRASH + m_bookmarkToolBar->clear(); // FIXME CRASH - KBookmark bookmark = toolBarGroup.first(); - while (!bookmark.isNull()) - { - m_bookmarkToolBar->addAction(fillBookmarkBar(bookmark)); - bookmark = toolBarGroup.next(bookmark); - } + KBookmark bookmark = toolBarGroup.first(); + while (!bookmark.isNull()) + { + m_bookmarkToolBar->addAction(fillBookmarkBar(bookmark)); + bookmark = toolBarGroup.next(bookmark); } } -- cgit v1.2.1