From: Jose Dapena Paz Date: Sat, 12 Jan 2008 16:44:26 +0000 (+0000) Subject: * src/modest-ui-actions.c: X-Git-Tag: git_migration_finished~1822 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=a262b281cdf1f134f7b5fc268cfa8ba91d180cbf;hp=73cdc9fdb630dbd3850e74cfdb34f48cbbac8976 * 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 --- 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));