aboutsummaryrefslogtreecommitdiff
path: root/src/settings-live.cpp
diff options
context:
space:
mode:
authorArthur Mello <arthur.mello@canonical.com>2016-06-24 16:55:50 -0300
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-29 14:37:39 +0200
commitff4a63eb5d7c9528d2cf204a2be3d28ec084b734 (patch)
treeae5c2a93b78145d43c0e4ae99e01c64eb1875cff /src/settings-live.cpp
parent3adc4da86cb2edd9cb5ec667683f7b455562d2f1 (diff)
downloadayatana-indicator-datetime-ff4a63eb5d7c9528d2cf204a2be3d28ec084b734.tar.gz
ayatana-indicator-datetime-ff4a63eb5d7c9528d2cf204a2be3d28ec084b734.tar.bz2
ayatana-indicator-datetime-ff4a63eb5d7c9528d2cf204a2be3d28ec084b734.zip
Fix settings test check so we do not fail if GSettings schema is missing
Diffstat (limited to 'src/settings-live.cpp')
-rw-r--r--src/settings-live.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/settings-live.cpp b/src/settings-live.cpp
index d1ea91b..8060a08 100644
--- a/src/settings-live.cpp
+++ b/src/settings-live.cpp
@@ -305,7 +305,7 @@ void LiveSettings::update_snooze_duration()
void LiveSettings::update_cal_notification_enabled()
{
- if (m_settings_cal_notification) {
+ if (m_settings_cal_notification != NULL) {
cal_notification_enabled.set(g_settings_get_boolean(m_settings_cal_notification, SETTINGS_NOTIFY_ENABLED_KEY));
} else {
cal_notification_enabled.set(true);
@@ -314,7 +314,7 @@ void LiveSettings::update_cal_notification_enabled()
void LiveSettings::update_cal_notification_sounds()
{
- if (m_settings_cal_notification) {
+ if (m_settings_cal_notification != NULL) {
cal_notification_sounds.set(g_settings_get_boolean(m_settings_cal_notification, SETTINGS_NOTIFY_SOUNDS_KEY));
} else {
cal_notification_sounds.set(true);
@@ -323,7 +323,7 @@ void LiveSettings::update_cal_notification_sounds()
void LiveSettings::update_cal_notification_vibrations()
{
- if (m_settings_cal_notification) {
+ if (m_settings_cal_notification != NULL) {
cal_notification_vibrations.set(g_settings_get_boolean(m_settings_cal_notification, SETTINGS_NOTIFY_VIBRATIONS_KEY));
} else {
cal_notification_vibrations.set(true);
@@ -332,7 +332,7 @@ void LiveSettings::update_cal_notification_vibrations()
void LiveSettings::update_cal_notification_bubbles()
{
- if (m_settings_cal_notification) {
+ if (m_settings_cal_notification != NULL) {
cal_notification_bubbles.set(g_settings_get_boolean(m_settings_cal_notification, SETTINGS_NOTIFY_BUBBLES_KEY));
} else {
cal_notification_bubbles.set(true);
@@ -341,7 +341,7 @@ void LiveSettings::update_cal_notification_bubbles()
void LiveSettings::update_cal_notification_list()
{
- if (m_settings_cal_notification) {
+ if (m_settings_cal_notification != NULL) {
cal_notification_list.set(g_settings_get_boolean(m_settings_cal_notification, SETTINGS_NOTIFY_LIST_KEY));
} else {
cal_notification_list.set(true);