aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-07-15 01:39:43 +0200
committerRobert Tari <robert@tari.in>2021-07-15 01:39:43 +0200
commitb8d44d2f6bfd4019d7b794200035bf209487f85d (patch)
tree422662cd7ad423536d27f61a40f9f98c9256c420
parent7c5e7e737ab1c68fb3695ff8ff9ea37883fc3888 (diff)
downloadayatana-indicator-datetime-b8d44d2f6bfd4019d7b794200035bf209487f85d.tar.gz
ayatana-indicator-datetime-b8d44d2f6bfd4019d7b794200035bf209487f85d.tar.bz2
ayatana-indicator-datetime-b8d44d2f6bfd4019d7b794200035bf209487f85d.zip
src/settings-live.cpp: initialise m_settings_cal_notification and m_settings_general_notification to NULL if we are not on Lomiri
-rw-r--r--src/settings-live.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings-live.cpp b/src/settings-live.cpp
index 59c133f..00caa74 100644
--- a/src/settings-live.cpp
+++ b/src/settings-live.cpp
@@ -78,6 +78,11 @@ LiveSettings::LiveSettings():
update_cal_notification_list();
update_vibrate_silent_mode();
}
+ else
+ {
+ m_settings_cal_notification = NULL;
+ m_settings_general_notification = NULL;
+ }
// now listen for clients to change the properties s.t. we can sync update GSettings