do this properly.
authorMurray Cumming <murrayc@murrayc.com>
Thu, 14 Jun 2007 10:40:20 +0000 (10:40 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 14 Jun 2007 10:40:20 +0000 (10:40 +0000)
pmo-trunk-r2227

src/modest-widget-memory.c

index 55d31c2..1920953 100644 (file)
@@ -305,7 +305,7 @@ save_settings_header_view (ModestConf *conf, ModestHeaderView *header_view,
                cursor = g_list_next (cursor);
        }
 
-       if (str->str == NULL) {
+       if ((str->str == NULL) || (strlen(str->str) == 0)) {
                /* TODO: Find out why this happens sometimes. */
                g_warning ("DEBUG: %s: Attempting to write an empty value to "
                        "gconf key %s. Preventing.", __FUNCTION__, key);