* src/modest-ui-actions.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 2 Aug 2007 06:04:26 +0000 (06:04 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 2 Aug 2007 06:04:26 +0000 (06:04 +0000)
* (modest_ui_actions_on_delete_folder): now we focus inbox
  folder on finishing the delete folder operation (fixes
  NB#63239).

pmo-trunk-r2903

src/modest-ui-actions.c

index e819cf4..163c146 100644 (file)
@@ -2460,9 +2460,15 @@ void
 modest_ui_actions_on_delete_folder (GtkAction *action,
                                     ModestMainWindow *main_window)
 {
+       GtkWidget *folder_view;
        g_return_if_fail (MODEST_IS_MAIN_WINDOW(main_window));
 
        delete_folder (main_window, FALSE);
+       folder_view = modest_main_window_get_child_widget (main_window,
+                                                          MODEST_WIDGET_TYPE_FOLDER_VIEW);
+       if (!folder_view)
+               return;
+       modest_folder_view_select_first_inbox_or_local (MODEST_FOLDER_VIEW (folder_view));
 }
 
 void