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:
parent
b86b385d98
commit
a4c246ab0e
@ -298,6 +298,8 @@ void GM_Manager::mainWindowCreated(BrowserWindow* window)
|
|||||||
|
|
||||||
void GM_Manager::mainWindowDeleted(BrowserWindow* window)
|
void GM_Manager::mainWindowDeleted(BrowserWindow* window)
|
||||||
{
|
{
|
||||||
window->navigationBar()->removeToolButton(m_windows[window]);
|
GM_Icon *icon = m_windows.take(window);
|
||||||
delete m_windows.take(window);
|
window->statusBar()->removeButton(icon);
|
||||||
|
window->navigationBar()->removeToolButton(icon);
|
||||||
|
delete icon;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user