-
-
Notifications
You must be signed in to change notification settings - Fork 113
"Save as" destroys data when trying to overwrite a file #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Should the existing file be moved to a backup (what name, where?) or or should the new file over-write the old, or should a dialog be displayed? |
Maybe this should be handled by our file dialog. To have a confirmation when trying to save over a file |
The linked PR enables the confirmation dialog native to Gtk.FileChooser as well as fixing the data loss caused by a race between loading on focus-in and save as new file. |
…rtup Jeremypw/sync activeproject startup
* First compilable version * Emulate previous appearance of Plugins view * Update ci.yml * Update io.elementary.code.yml * Bump glib dependency for libpeas-2 * Rename non-functional Flatpak manifest * Sync checkbutton with plugin loaded on show * Action when checkbox toggled * Fix double parenting * Sort plugins by name * Use bind_model and factory * Lose unused entities * Cleanup and code style * Fix initial appearance of preferences dialog * Add some comments * Lose commented out code * Make activate and deactivate methods mandatory to implement * Fix Flatpak build for OS8 * Fix ci.yml * Add libgit2-glib-1.0-dev to ci.yml * Split SourceList into one file per class * Fix changed namespace * Remove DnD code * Replace Gdk.EventKey * Use GestureClick * Handle showing context menu * Handle search_entry focus in * Handle window close request
To reproduce:
Create one file with "Well, then", save as test.txt, and close.
Create another file with "Hello there" and attempt to overwrite test.txt.
You will see "Well, then" in your editor, and "Hello there" has been destroyed (no backup either).
This, in combination with a resurfacing of bug #1392031, caused me to lose about an hour of work. Ouchies.
Workaround: ALWAYS use a new filename when saving.
Launchpad Details: #LP1668014 David Berg - 2017-02-26 08:01:56 +0000
The text was updated successfully, but these errors were encountered: