aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-02-12 09:57:20 -0500
committerKen Moore <moorekou@gmail.com>2016-02-12 09:57:20 -0500
commitb9880c772e2ffe097c54f19689f56c4606f87f85 (patch)
tree2403ffea449618e4bff95b8b48cdc6ac2f08ed5e /lumina-desktop/panel-plugins/systemstart/LStartButton.cpp
parentMerge pull request #182 from vovd/master (diff)
downloadlumina-b9880c772e2ffe097c54f19689f56c4606f87f85.tar.gz
lumina-b9880c772e2ffe097c54f19689f56c4606f87f85.tar.bz2
lumina-b9880c772e2ffe097c54f19689f56c4606f87f85.zip
Change a lot of "delete" calls on QWidgets to the safer "->deleteLater()" Qt function. This might fix the random issues with desktop crashes on non-FreeBSD systems.
Diffstat (limited to 'lumina-desktop/panel-plugins/systemstart/LStartButton.cpp')
-rw-r--r--lumina-desktop/panel-plugins/systemstart/LStartButton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp b/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp
index cf37cf88..e08ef1c8 100644
--- a/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp
+++ b/lumina-desktop/panel-plugins/systemstart/LStartButton.cpp
@@ -52,7 +52,7 @@ void LStartButtonPlugin::updateQuickLaunch(QStringList apps){
for(int i=0; i<QUICKL.length(); i++){
if( !apps.contains(QUICKL[i]->whatsThis()) ){
//App was removed
- delete QUICKL.takeAt(i);
+ QUICKL.takeAt(i)->deleteLater();
i--;
}else{
//App still listed - update the button
bgstack15