about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-12-01 18:55:48 +0000
committerJames Booth <boothj5@gmail.com>2012-12-01 18:55:48 +0000
commit8400ae29baa9d68f3347a2b31787335b64d69af6 (patch)
tree8bb3e81d858eb7fbc64a630ac250abd242ec42a7 /src
parent5a0121306d19378f257eb37dc46b568c236110d0 (diff)
downloadprofani-tty-8400ae29baa9d68f3347a2b31787335b64d69af6.tar.gz
Default /autoaway check on
Diffstat (limited to 'src')
-rw-r--r--src/preferences.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/preferences.c b/src/preferences.c
index 8b36f059..497c90c2 100644
--- a/src/preferences.c
+++ b/src/preferences.c
@@ -400,7 +400,11 @@ prefs_set_autoaway_message(gchar *value)
 gboolean
 prefs_get_autoaway_check(void)
 {
-    return g_key_file_get_boolean(prefs, "autoaway", "check", NULL);
+    if (g_key_file_has_key(prefs, "autoaway", "check", NULL)) {
+        return g_key_file_get_boolean(prefs, "autoaway", "check", NULL);
+    } else {
+        return TRUE;
+    }
 }
 
 void