GNOME Bugzilla – Bug 780847
File auto-saved twice
Last modified: 2017-04-02 21:31:07 UTC
Then I edit file it automatically saved twice. Log of my experiments: 18:36 Open file, edit, do not save 18:37 *Auto-save 18:38 *Auto-save 18:40 Edit, do not save 18:41 *Auto-save 18:42 *Auto-save 18:43 Edit, do not save 18:44 *Auto-save 18:46 Edit, do not save 18:47 *Auto-save 18:48 *Auto-save 18:50 Edit, do not save 18:51 *Auto-save 18:54 Edit,save manually 18:54 *Saved manually 18:55 *Auto-save 18:58 Edit & save 18:58 *Saved manually 18:59 *Auto-save 19:01 Edit & save 19:01 *Saved manually 19:02 *Auto-save
I add g_debug() to register_auto_save(), ide_buffer_manager_auto_save_cb() and unregister_auto_save(). When I use Ctrl+S and "Save" menu item method unregister_auto_save() not called. After timeout file saved, called ide_buffer_manager_auto_save_cb() and only then called unregister_auto_save().
Created attachment 349149 [details] [review] Patch called unregister auto-save on buffer save
Review of attachment 349149 [details] [review]: LGTM, thanks for tracking this down!
committed as dd11bc6 This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution. This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.