From a262b281cdf1f134f7b5fc268cfa8ba91d180cbf Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Sat, 12 Jan 2008 16:44:26 +0000 Subject: [PATCH 1/1] * src/modest-ui-actions.c: * 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index c9ab096..7d2660b 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -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)); -- 1.7.9.5