* Reverting changes of commit 3674 since the original behaviour is better than the...
authorSergio Villar Senin <svillar@igalia.com>
Mon, 12 Nov 2007 15:33:52 +0000 (15:33 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 12 Nov 2007 15:33:52 +0000 (15:33 +0000)
pmo-trunk-r3709

src/modest-ui-actions.c

index 5e25f1d..ae35380 100644 (file)
@@ -2771,7 +2771,13 @@ modest_ui_actions_on_delete_folder (GtkAction *action,
 {
        g_return_if_fail (MODEST_IS_MAIN_WINDOW(main_window));
 
-       delete_folder (main_window, FALSE);
+       if (delete_folder (main_window, FALSE)) {
+               GtkWidget *folder_view;
+
+               folder_view = modest_main_window_get_child_widget (main_window,
+                                                                  MODEST_MAIN_WINDOW_WIDGET_TYPE_FOLDER_VIEW);
+               modest_folder_view_select_first_inbox_or_local (MODEST_FOLDER_VIEW (folder_view));
+       }
 }
 
 void