diff options
author | Backalor <backalor@backalor.com> | 2013-01-22 09:54:59 +0900 |
---|---|---|
committer | Backalor <backalor@backalor.com> | 2013-01-22 09:54:59 +0900 |
commit | 9a58017385f89e70ae820927cd2b2d8479b57cf4 (patch) | |
tree | c52d33b0ae49e22dd5fad924710f277136e893e9 /src/preferences.c | |
parent | a0a1f9017f01af9be6cac3280b47f9ae586b06ef (diff) | |
download | profani-tty-9a58017385f89e70ae820927cd2b2d8479b57cf4.tar.gz |
Add function prototype and make the default for the /statuses command be ON
Diffstat (limited to 'src/preferences.c')
-rw-r--r-- | src/preferences.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/preferences.c b/src/preferences.c index c4283269..97a2041e 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -413,7 +413,11 @@ prefs_set_splash(gboolean value) gboolean prefs_get_statuses(void) { - return g_key_file_get_boolean(prefs, "ui", "statuses", NULL); + if (g_key_file_has_key(prefs, "ui", "statuses", NULL)) { + return g_key_file_get_boolean(prefs, "ui", "statuses", NULL); + } else { + return TRUE; + } } void |