1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge branch 'master' into winbuffers

This commit is contained in:
James Booth 2014-07-29 15:52:14 +01:00
commit d8cab42a2a

View File

@ -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