Fix compilation without DBus notification support
This commit is contained in:
parent
b9b557462b
commit
1e83fefdf2
|
@ -39,7 +39,9 @@ namespace QtGui {
|
|||
TrayIcon::TrayIcon(const QString &connectionConfig, QObject *parent)
|
||||
: QSystemTrayIcon(parent)
|
||||
, m_trayMenu(connectionConfig, this)
|
||||
#ifdef QT_UTILITIES_SUPPORT_DBUS_NOTIFICATIONS
|
||||
, m_dbusNotificationsEnabled(Settings::values().dbusNotifications)
|
||||
#endif
|
||||
, m_notifyOnSyncthingErrors(Settings::values().notifyOn.syncthingErrors)
|
||||
, m_messageClickedAction(TrayIconMessageClickedAction::None)
|
||||
{
|
||||
|
|
|
@ -54,8 +54,8 @@ private:
|
|||
#ifdef QT_UTILITIES_SUPPORT_DBUS_NOTIFICATIONS
|
||||
DBusStatusNotifier m_dbusNotifier;
|
||||
bool &m_dbusNotificationsEnabled;
|
||||
bool &m_notifyOnSyncthingErrors;
|
||||
#endif
|
||||
bool &m_notifyOnSyncthingErrors;
|
||||
TrayIconMessageClickedAction m_messageClickedAction;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue