* modest-ui-actions.c: check if copy_folder_async failed to
remove mail operation from queue.
pmo-trunk-r1936
/* The moveable restriction is applied also to copy operation */
rules = modest_tny_folder_get_rules (TNY_FOLDER (parent));
if (rules & MODEST_FOLDER_RULES_FOLDER_NON_MOVEABLE) {
+ priv->status = MODEST_MAIL_OPERATION_STATUS_FAILED;
g_set_error (&(priv->error), MODEST_MAIL_OPERATION_ERROR,
MODEST_MAIL_OPERATION_ERROR_FOLDER_RULES,
_("FIXME: unable to rename"));
folder_store,
TRUE);
g_object_unref (G_OBJECT (mail_op));
+
}
/* Frees */
}
g_object_unref (folder_store);
+ /* Check errors */
+ if (modest_mail_operation_get_status (mail_op) == MODEST_MAIL_OPERATION_STATUS_FAILED)
+ /* Notify the queue */
+ modest_mail_operation_queue_remove (modest_runtime_get_mail_operation_queue (), mail_op);
+
end:
gtk_widget_destroy (dialog);
}