aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LPanel.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-02-18 07:42:57 -0500
committerKen Moore <moorekou@gmail.com>2016-02-18 07:42:57 -0500
commit42ab2f95f82522085fdc4ffc8bad1fb182b5ec9c (patch)
treea376ecf43921aea37b548ded5844cae84a156f02 /lumina-desktop/LPanel.cpp
parentFix the "amixer" command used to set the volume in the generic "Linux" suppor... (diff)
downloadlumina-42ab2f95f82522085fdc4ffc8bad1fb182b5ec9c.tar.gz
lumina-42ab2f95f82522085fdc4ffc8bad1fb182b5ec9c.tar.bz2
lumina-42ab2f95f82522085fdc4ffc8bad1fb182b5ec9c.zip
Find/switch a bunch of other "delete" calls on QWidgets to the Qt deleteLater() function instead. This seems to fix the start menu category change crash with Qt 5.5.1
Diffstat (limited to 'lumina-desktop/LPanel.cpp')
-rw-r--r--lumina-desktop/LPanel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-desktop/LPanel.cpp b/lumina-desktop/LPanel.cpp
index b0ead2e0..2940482c 100644
--- a/lumina-desktop/LPanel.cpp
+++ b/lumina-desktop/LPanel.cpp
@@ -67,7 +67,7 @@ void LPanel::prepareToClose(){
for(int i=0; i<PLUGINS.length(); i++){
PLUGINS[i]->AboutToClose(); //any last cleanup for this plugin
layout->takeAt(i); //remove from the layout
- delete PLUGINS.takeAt(i); //delete the actual widget
+ PLUGINS.takeAt(i)->deleteLater(); //delete the actual widget
LSession::processEvents();
i--; //need to back up one space to not miss another plugin
}
@@ -262,7 +262,7 @@ void LPanel::UpdatePanel(bool geomonly){
static_cast<LSysTray*>(PLUGINS[i])->stop();
}
layout->takeAt(i); //remove from the layout
- delete PLUGINS.takeAt(i); //delete the actual widget
+ PLUGINS.takeAt(i)->deleteLater(); //delete the actual widget
LSession::processEvents();
i--; //need to back up one space to not miss another plugin
}
bgstack15