Make Systray's _trayEngine a QPointer
authorStephan Beyer <s-beyer@gmx.net>
Wed, 24 Jun 2020 15:24:52 +0000 (17:24 +0200)
committerStephan Beyer <s-beyer@gmx.net>
Wed, 24 Jun 2020 15:25:20 +0000 (17:25 +0200)
This is just safer.

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
src/gui/systray.h

index cffa4f8437755217f63846d427309c1b95c2e640..02a0034cf71bc8f5d7191f943d9ad8367d3db432 100644 (file)
@@ -90,7 +90,7 @@ private:
 
     bool _isOpen = false;
     bool _syncIsPaused = false;
-    QQmlApplicationEngine *_trayEngine = nullptr;
+    QPointer<QQmlApplicationEngine> _trayEngine;
 };
 
 } // namespace OCC