Ensure Add/remove button is removed when DesktopGrid is unloaded

BUG: 271481
FIXED-IN: 4.7.0
This commit is contained in:
Martin Gräßlin 2011-04-28 19:15:12 +02:00
parent 3db49d9882
commit e25913cafb

View file

@ -89,6 +89,12 @@ DesktopGridEffect::~DesktopGridEffect()
foreach (ElectricBorder border, borderActivate) {
effects->unreserveElectricBorder(border);
}
QHash< DesktopButtonsView*, EffectWindow* >::iterator i = m_desktopButtonsViews.begin();
while (i != m_desktopButtonsViews.end()) {
DesktopButtonsView *view = i.key();
i = m_desktopButtonsViews.erase(i);
view->deleteLater();
}
}
void DesktopGridEffect::reconfigure(ReconfigureFlags)