From: Paweł Forysiuk Date: Wed, 23 Mar 2011 01:22:42 +0000 (+0100) Subject: Take into account JSON/ non-JSON column defaults X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4cc81a6c290d36a1c8eeee5c254a8a2693f752d;p=midori Take into account JSON/ non-JSON column defaults --- diff --git a/midori/main.c b/midori/main.c index c7789a24..7900d620 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1594,8 +1594,9 @@ speeddial_new_from_file (const gchar* config, } } + /* Without JSON we save 3 columns and 0 rows, columns are initialised as 3 */ g_key_file_set_integer (key_file, "settings", "columns", columns); - g_key_file_set_integer (key_file, "settings", "rows", slot_count / columns); + g_key_file_set_integer (key_file, "settings", "rows", slot_count / columns ? 0 : 3); g_strfreev (parts); g_free (json_content);