mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
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:
parent
f86eb0531a
commit
11f9224782
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue