1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00

NavigationBar: Make sure search bar doesn't have null size in splitter

This commit is contained in:
David Rosca 2018-01-08 10:52:21 +01:00
parent 4f9c375ff1
commit 7adda247dc

View File

@ -514,6 +514,12 @@ void NavigationBar::reloadLayout()
m_layout->addWidget(m_supMenu);
// Make sure search bar is visible
if (m_searchLine->isVisible() && m_navigationSplitter->sizes().at(1) == 0) {
const int locationBarSize = m_navigationSplitter->sizes().at(0);
setSplitterSizes(locationBarSize - 50, 50);
}
setUpdatesEnabled(true);
}