summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-16 09:43:56 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-16 09:43:56 +0100
commitd92f82b200c2c9098cab32c2d9437ee2cfefa720 (patch)
tree65907aaf923477fa8363ff28ad8f2fb8959b3214
parentFixes focus && let Protocol handler to just load on demand (diff)
downloadrekonq-d92f82b200c2c9098cab32c2d9437ee2cfefa720.tar.xz
Removed unuseful check (also if sometimes the bookmark
toolbar let rekonq misteriously crash...)
-rw-r--r--src/bookmarks/bookmarksmanager.cpp15
1 files changed, 6 insertions, 9 deletions
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);
}
}