Let Systray constructor call its base class constructor
authorStephan Beyer <s-beyer@gmx.net>
Wed, 17 Jun 2020 20:46:25 +0000 (22:46 +0200)
committerStephan Beyer <s-beyer@gmx.net>
Wed, 24 Jun 2020 11:42:26 +0000 (13:42 +0200)
Although I see no behavioral difference, this is probably
a good idea.

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

index 6b15ddaba60529f79f7c178871b87fcfc8659a84..a2b570970ccee3319a6bd7339f0143d148d95d83 100644 (file)
@@ -50,7 +50,8 @@ Systray *Systray::instance()
 }
 
 Systray::Systray()
-    : _trayEngine(new QQmlApplicationEngine(this))
+    : QSystemTrayIcon(nullptr)
+    , _trayEngine(new QQmlApplicationEngine(this))
 {
     _trayEngine->addImportPath("qrc:/qml/theme");
     _trayEngine->addImageProvider("avatars", new ImageProvider);