* set a new default account when removing the current one
[modest] / src / modest-widget-memory.c
index c1d6ed7..54393d9 100644 (file)
@@ -394,15 +394,15 @@ save_settings_folder_view (ModestConf *conf, ModestFolderView *folder_view,
        gchar *key;
        const gchar* account_id;
 
-       /* Restore the visible account */
+       /* Save the visible account */
        key = _modest_widget_memory_get_keyname (name, "visible_server_account_id");
 
        account_id = modest_folder_view_get_account_id_of_visible_server_account (folder_view);
        if (account_id)
                modest_conf_set_string (conf, key, account_id, NULL);
-
        g_free (key);
 
+
        return TRUE;
 }
 
@@ -446,6 +446,9 @@ restore_settings_folder_view (ModestConf *conf,
 
        g_free (key);
 
+       /* Select the first INBOX folder */
+       modest_folder_view_select_first_inbox_or_local (folder_view);
+
        return TRUE;
 }