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

GreaseMonkey: Fix removing statusbar icon when unloading plugin

This commit is contained in:
David Rosca 2018-02-24 14:19:06 +01:00
parent b86b385d98
commit a4c246ab0e
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -298,6 +298,8 @@ void GM_Manager::mainWindowCreated(BrowserWindow* window)
void GM_Manager::mainWindowDeleted(BrowserWindow* window)
{
window->navigationBar()->removeToolButton(m_windows[window]);
delete m_windows.take(window);
GM_Icon *icon = m_windows.take(window);
window->statusBar()->removeButton(icon);
window->navigationBar()->removeToolButton(icon);
delete icon;
}