* src/modest-ui-actions.c:
authorJose Dapena Paz <jdapena@igalia.com>
Sat, 12 Jan 2008 16:44:26 +0000 (16:44 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Sat, 12 Jan 2008 16:44:26 +0000 (16:44 +0000)
* If move to operation of a folder fails, we don't move the
  focus to the destination folder (fixes NB#79021).

pmo-trunk-r4022

src/modest-ui-actions.c

index c9ab096..7d2660b 100644 (file)
@@ -4611,9 +4611,11 @@ on_move_folder_cb (gboolean canceled, GError *err, GtkWindow *parent_window,
                        info->delete_original, 
                        folder_move_to_cb, 
                        helper);
-       
-       modest_folder_view_select_folder (MODEST_FOLDER_VIEW(info->folder_view),
-                       TNY_FOLDER (info->dst_folder), TRUE);
+
+       if (modest_mail_operation_get_status (mail_op) == MODEST_MAIL_OPERATION_STATUS_SUCCESS) {       
+               modest_folder_view_select_folder (MODEST_FOLDER_VIEW(info->folder_view),
+                                                 TNY_FOLDER (info->dst_folder), TRUE);
+       }
        
        /* Unref mail operation */
        g_object_unref (G_OBJECT (mail_op));