aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-08-02 11:30:36 -0400
committerKen Moore <ken@ixsystems.com>2017-08-02 11:30:53 -0400
commitf03f72324ff70af5285c50632df4148a6881fa46 (patch)
tree956735723bbe2062b9ada9fb60c0d9e291525132 /src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp
parentMerge branch 'master' of http://github.com/trueos/lumina (diff)
downloadlumina-f03f72324ff70af5285c50632df4148a6881fa46.tar.gz
lumina-f03f72324ff70af5285c50632df4148a6881fa46.tar.bz2
lumina-f03f72324ff70af5285c50632df4148a6881fa46.zip
Adjust the screensaver restart routine a bit.
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp')
-rw-r--r--src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp
index 9ef0c491..7854b597 100644
--- a/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp
+++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/SSBaseWidget.cpp
@@ -39,8 +39,7 @@ void SSBaseWidget::startPainting(){
cplug = plugType;
//free up any old animation instance
if(ANIM!=0){
- ANIM->stop(); ANIM->clear();
- delete ANIM; ANIM = 0;
+ stopPainting();
}
//If a random plugin - grab one of the known plugins
if(cplug=="random"){
bgstack15