Fixes NB#107894, show "Device storage full..." error when trying to rename in memory...
authorSergio Villar Senin <svillar@igalia.com>
Tue, 7 Apr 2009 08:01:00 +0000 (08:01 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 7 Apr 2009 08:01:00 +0000 (08:01 +0000)
pmo-trunk-r8647

src/modest-ui-actions.c

index d157d49..a3355c4 100644 (file)
@@ -3460,8 +3460,10 @@ modest_ui_actions_rename_folder_error_handler (ModestMailOperation *mail_op,
        if (!error)
                g_return_if_reached ();
 
-       if (error->domain == MODEST_MAIL_OPERATION_ERROR &&
-           error->code == MODEST_MAIL_OPERATION_ERROR_FOLDER_EXISTS) {
+       if (is_memory_full_error ((GError *) error, mail_op)) {
+               message = _KR("cerm_device_memory_full");
+       } else if (error->domain == MODEST_MAIL_OPERATION_ERROR &&
+                  error->code == MODEST_MAIL_OPERATION_ERROR_FOLDER_EXISTS) {
                message = _CS("ckdg_ib_folder_already_exists");
        } else if (error->domain == TNY_ERROR_DOMAIN &&
                   error->code == TNY_SERVICE_ERROR_STATE) {