Do not lose focus when rename fails (fixes NB#84791).
[modest] / src / modest-ui-actions.c
index 9d27ff4..9e8cd82 100644 (file)
@@ -3125,7 +3125,7 @@ on_rename_folder_cb (ModestMailOperation *mail_op,
 
        /* If the window was closed when renaming a folder this could
           happen */
-       if (MODEST_IS_FOLDER_VIEW (user_data))
+       if (!MODEST_IS_FOLDER_VIEW (user_data))
                return;
 
        folder_view = MODEST_FOLDER_VIEW (user_data);