1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

[GreaseMonkey] Correctly remove icons from statusbar on unload.

This commit is contained in:
nowrep 2013-06-03 15:42:14 +02:00
parent 197240845d
commit 48528b36bf

View File

@ -98,6 +98,13 @@ void GM_Manager::unloadPlugin()
settings.endGroup();
delete m_settings.data();
// Remove icons from all windows
QHashIterator<QupZilla*, GM_Icon*> it(m_windows);
while (it.hasNext()) {
it.next();
mainWindowDeleted(it.key());
}
}
QList<GM_Script*> GM_Manager::allScripts() const
@ -276,4 +283,5 @@ void GM_Manager::mainWindowDeleted(QupZilla* window)
{
window->statusBar()->removeWidget(m_windows[window]);
delete m_windows[window];
m_windows.remove(window);
}