Fix compilation without DBus notification support

This commit is contained in:
Martchus 2018-05-10 13:51:07 +02:00
parent b9b557462b
commit 1e83fefdf2
2 changed files with 3 additions and 1 deletions

View File

@ -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)
{

View File

@ -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;
};