diff --git a/runtime/FloatingWindow.h b/runtime/FloatingWindow.h index 7a77771f1..6661ed16f 100644 --- a/runtime/FloatingWindow.h +++ b/runtime/FloatingWindow.h @@ -46,8 +46,8 @@ private: QAction *m_logAction = Q_NULLPTR; QAction *m_quitAction = Q_NULLPTR; - QMenu *m_floatingWindowMenu; - MenuActions *m_menuActions; + QMenu *m_floatingWindowMenu = Q_NULLPTR; + MenuActions *m_menuActions = Q_NULLPTR; signals: void shutdownSignal(QUrl); diff --git a/runtime/TrayIcon.h b/runtime/TrayIcon.h index be54f0d84..9f07b420d 100644 --- a/runtime/TrayIcon.h +++ b/runtime/TrayIcon.h @@ -39,10 +39,10 @@ private: QAction *m_logAction = Q_NULLPTR; QAction *m_quitAction = Q_NULLPTR; - QSystemTrayIcon *m_trayIcon; - QMenu *m_trayIconMenu; + QSystemTrayIcon *m_trayIcon = Q_NULLPTR; + QMenu *m_trayIconMenu = Q_NULLPTR; - MenuActions *m_menuActions; + MenuActions *m_menuActions = Q_NULLPTR; }; #endif // TRAYICON_H