Show a generic error (instead of the one from Tinymail) when
authorAlberto Garcia <agarcia@igalia.com>
Mon, 10 Dec 2007 12:17:32 +0000 (12:17 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Mon, 10 Dec 2007 12:17:32 +0000 (12:17 +0000)
a move-to operation fails.
Fixes NB#78371

pmo-trunk-r3890

src/modest-ui-actions.c

index 58a8490..89a2121 100644 (file)
@@ -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);
 }