diff --git a/src/gui/systray.cpp b/src/gui/systray.cpp index 17ac06c6a..bd508319b 100644 --- a/src/gui/systray.cpp +++ b/src/gui/systray.cpp @@ -19,10 +19,9 @@ #include "tray/UserModel.h" #include -#include #include -#include #include +#include #include #ifdef USE_FDO_NOTIFICATIONS @@ -50,8 +49,8 @@ Systray *Systray::instance() Systray::Systray() : _isOpen(false) , _syncIsPaused(false) + , _trayEngine(new QQmlApplicationEngine(this)) { - _trayEngine = new QQmlApplicationEngine; _trayEngine->addImportPath("qrc:/qml/theme"); _trayEngine->addImageProvider("avatars", new ImageProvider); _trayEngine->rootContext()->setContextProperty("userModelBackend", UserModel::instance()); diff --git a/src/gui/systray.h b/src/gui/systray.h index 21f70ef4a..8ec154d3d 100644 --- a/src/gui/systray.h +++ b/src/gui/systray.h @@ -16,12 +16,10 @@ #define SYSTRAY_H #include -#include #include "accountmanager.h" #include "tray/UserModel.h" -class QIcon; class QQmlApplicationEngine; namespace OCC {