diff options
author | James Booth <boothj5@gmail.com> | 2014-07-29 15:52:14 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-07-29 15:52:14 +0100 |
commit | d8cab42a2a9892ed8f42ac687617d94332b87396 (patch) | |
tree | af5b8be421abc20367f449199679f4200d247cb4 | |
parent | 73a56de47038b3e0d74c406b0cf1bb4fb0485c86 (diff) | |
parent | 816351d37102f9f31d84b9fc335308c967fdbb0a (diff) | |
download | profani-tty-d8cab42a2a9892ed8f42ac687617d94332b87396.tar.gz |
Merge branch 'master' into winbuffers
-rw-r--r-- | src/config/preferences.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 6ac9a6d6..1f7f2fd1 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -252,7 +252,11 @@ prefs_get_priority(void) gint prefs_get_reconnect(void) { - return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL); + if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL)) { + return 30; + } else { + return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "reconnect", NULL); + } } void |