From 12c8ed43dedce8fb9a7ceb0061152cdd8d10ee08 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Mon, 10 Dec 2007 12:17:32 +0000 Subject: [PATCH] Show a generic error (instead of the one from Tinymail) when a move-to operation fails. Fixes NB#78371 pmo-trunk-r3890 --- src/modest-ui-actions.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 58a8490..89a2121 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -4166,16 +4166,6 @@ modest_ui_actions_move_folder_error_handler (ModestMailOperation *mail_op, { ModestWindow *main_window = NULL; GObject *win = NULL; - const GError *error = NULL; - const gchar *message = NULL; - - /* Get error message */ - error = modest_mail_operation_get_error (mail_op); - if (error != NULL && error->message != NULL) { - message = error->message; - } else { - message = _("mail_in_ui_folder_move_target_error"); - } /* Disable next automatic folder selection */ main_window = modest_window_mgr_get_main_window (modest_runtime_get_window_mgr (), @@ -4195,7 +4185,7 @@ modest_ui_actions_move_folder_error_handler (ModestMailOperation *mail_op, /* Show notification dialog */ win = modest_mail_operation_get_source (mail_op); - modest_platform_run_information_dialog ((GtkWindow *) win, message); + modest_platform_run_information_dialog ((GtkWindow *) win, _("mail_in_ui_folder_move_target_error")); if (win) g_object_unref (win); } -- 1.7.9.5