aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp')
-rw-r--r--lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp b/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
index be3e665a..3e31a534 100644
--- a/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
+++ b/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
@@ -57,7 +57,7 @@ void LTaskManagerPlugin::UpdateButtons(){
//Remove the entire button
//qDebug() << "Window Closed: Remove Button" ;
this->layout()->takeAt(i); //remove from the layout
- delete BUTTONS.takeAt(i);
+ BUTTONS.takeAt(i)->deleteLater();
i--;
updated = true; //prevent updating a removed button
break; //break out of the button->window loop
bgstack15