From 37f32021dfb052baa6ed44ece3601b2c93a52cde Mon Sep 17 00:00:00 2001 From: David Rosca Date: Wed, 21 Oct 2015 12:14:55 +0200 Subject: [PATCH] Fix unloading plugin with visible sidebar --- src/lib/sidebar/sidebar.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/sidebar/sidebar.cpp b/src/lib/sidebar/sidebar.cpp index 224b3c354..6c8a90d3d 100644 --- a/src/lib/sidebar/sidebar.cpp +++ b/src/lib/sidebar/sidebar.cpp @@ -190,6 +190,7 @@ void SideBarManager::showSideBar(const QString &id, bool toggle) void SideBarManager::sideBarRemoved(const QString &id) { if (m_activeBar == id && m_sideBar) { + m_sideBar.data()->setWidget(Q_NULLPTR); m_sideBar.data()->close(); } }