GNOME Bugzilla – Bug 754785
Let renames on Google Drive be undone
Last modified: 2015-09-10 10:22:49 UTC
As explained in bug 740383 ... (i) Renaming a Google Drive file might not change the URI because the URIs can be made up of immutable IDs. Only the standard::display-name is guaranteed to change. (ii) The standard::names are not fit to be shown in the UI. We should stick to standard::display-name. Currently, NautilusFileUndoInfoRename tracks the old and new GFile objects, but those might have the same URI. Therefore, once the file has been renamed we won't get the old display name from the GFile. Also, it is using g_file_get_basename to get the display name which is wrong. So let's extend NautilusFileUndoInfoRename to track the old and new display names as well as the actual GFile objects.
Created attachment 311002 [details] [review] file, file-undo-operations: Let renames on Google Drive be undone
Review of attachment 311002 [details] [review]: LGTM
Comment on attachment 311002 [details] [review] file, file-undo-operations: Let renames on Google Drive be undone Thanks for the review, Carlos. I have pushed it to master.