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:
parent
4f9c375ff1
commit
7adda247dc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user