X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-mail-operation.c;h=4d16d48c6b4980839e56a7a35909316e5844160a;hb=d8c49b249239b3b99d985cdc582600cda5f2230f;hp=47eae74eb8d62dd4fcb5866e6b5b16d15fea40c2;hpb=7cca451118fbe3ca6491022bfd4258bf81edd996;p=modest diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 47eae74..4d16d48 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -1770,7 +1770,9 @@ modest_mail_operation_xfer_folder (ModestMailOperation *self, parent_rules = modest_tny_folder_get_rules (TNY_FOLDER (parent)); /* The moveable restriction is applied also to copy operation */ - if ((!TNY_IS_FOLDER_STORE (parent)) || (rules & MODEST_FOLDER_RULES_FOLDER_NON_MOVEABLE)) { + if ((gpointer) parent == (gpointer) folder || + (!TNY_IS_FOLDER_STORE (parent)) || + (rules & MODEST_FOLDER_RULES_FOLDER_NON_MOVEABLE)) { printf("DEBUG: %s: Not allowing the move.\n", __FUNCTION__); /* Set status failed and set an error */ priv->status = MODEST_MAIL_OPERATION_STATUS_FAILED;