1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

SideBarManager: Clear active sidebar upon close

BUG: 406724
FIXED-IN: 3.1.1
This commit is contained in:
David Rosca 2019-04-21 11:21:29 +02:00
parent 92721449c0
commit f38265230d
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -166,6 +166,10 @@ void SideBarManager::showSideBar(const QString &id, bool toggle)
if (!m_sideBar) {
m_sideBar = m_window->addSideBar();
connect(m_sideBar, &QObject::destroyed, this, [this]() {
m_activeBar.clear();
m_window->saveSideBarSettings();
});
}
if (id == m_activeBar) {