Do not show a hidden bookmark toolbar when the user modifies

toolbar settings through the toolbar configuration dialog.
(cherry picked from commit 1dafec04f6)
This commit is contained in:
Dawit Alemayehu 2011-12-29 03:17:37 -05:00
parent f86eb0531a
commit 11f9224782

View file

@ -405,11 +405,13 @@ void KonqMainWindow::initBookmarkBar()
if (!bar) return;
const bool wasVisible = bar->isVisible();
delete m_paBookmarkBar;
m_paBookmarkBar = new KBookmarkBar( s_bookmarkManager, m_pBookmarksOwner, bar, this );
// hide if empty
if (bar->actions().count() == 0 )
if (bar->actions().count() == 0 || !wasVisible)
bar->hide();
}