Destroy old addons list properly when refreshing it
This commit is contained in:
@@ -303,6 +303,8 @@ void Control::scanForAddons()
|
|||||||
QObjectList ol;
|
QObjectList ol;
|
||||||
foreach (init_t i, list)
|
foreach (init_t i, list)
|
||||||
ol << new Addon(i.first, i.second);
|
ol << new Addon(i.first, i.second);
|
||||||
|
foreach (QObject *addon, m_addons)
|
||||||
|
addon->deleteLater();
|
||||||
setAddons(ol);
|
setAddons(ol);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user