mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 16:07:19 +00:00
more correct destuction
This commit is contained in:
parent
29d34525a3
commit
4a320bc5d6
@ -186,6 +186,8 @@ void DesktopPanel::reinit()
|
|||||||
// labels
|
// labels
|
||||||
for (int i=0; i<proxyWidgets.count(); i++) {
|
for (int i=0; i<proxyWidgets.count(); i++) {
|
||||||
layout->removeItem(proxyWidgets[i]);
|
layout->removeItem(proxyWidgets[i]);
|
||||||
|
proxyWidgets[i]->setWidget(0);
|
||||||
|
delete labels[i];
|
||||||
delete proxyWidgets[i];
|
delete proxyWidgets[i];
|
||||||
}
|
}
|
||||||
labels.clear();
|
labels.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user