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

NavigationBar: Clear current webview for all tool buttons

Fixes another crash similar to #2537
This commit is contained in:
David Rosca 2018-01-07 19:07:02 +01:00
parent 4dd67cfce6
commit 5dfe6d862c
2 changed files with 6 additions and 0 deletions

View File

@ -189,6 +189,11 @@ NavigationBar::NavigationBar(BrowserWindow* window)
loadSettings();
}
NavigationBar::~NavigationBar()
{
setCurrentView(nullptr);
}
void NavigationBar::setSplitterSizes(int locationBar, int websearchBar)
{
QList<int> sizes;

View File

@ -43,6 +43,7 @@ class FALKON_EXPORT NavigationBar : public QWidget
public:
explicit NavigationBar(BrowserWindow* window);
~NavigationBar();
void setSplitterSizes(int locationBar, int websearchBar);