GNOME Bugzilla – Bug 772935
can't save attachments
Last modified: 2016-10-18 05:31:30 UTC
With recent changes in master, saving attachments no longer works: 1. Select an attachment and click the "Save selected attachments" button. 2. Geary will prompt for a filename and location. Accept the defaults and click Save. 3. The file is not saved in the target location.
Hey Adam, are you sure? I just tried it then and it seemed to work fine. The issue might be that the original attachment's mtime/ctime is retained, rather than when it was saved.
This is absolutely not working for me. However, perhaps my Geary setup is in a bad state because I attempted to remove all Geary state by deleting the .local/share/geary directory. As I explained in a recent mailing list message, this used to be an easy way to reset Geary back to its initial state. In master, however, Geary seems to retain some knowledge of accounts even after that directory is deleted. So perhaps that explains the problem. Is there some way I can get back to a clean state so I can test whether this problem still occurs in that situation?
OK - I got some helpful feedback on the mailing list about how to restore Geary to a clean state. I did that. Unfortunately this bug is still occurring for me.
I debugged a bit. It turns out that when I press Save in the filename selection dialog, dialog.run() returns Gtk.ResponseType.CANCEL and so the attachment is not saved. If I press Cancel in the dialog, dialog.run() returns Gtk.ResponseType.ACCEPT and the attachment is saved! At least I have a workaround now. :)
By the way I'm running Ubuntu 16.10, which has GTK 3.20.9.
Created attachment 337823 [details] [review] Reorder correctly the labels of Gtk.FileChooserNative Fixes bug
Review of attachment 337823 [details] [review]: Hi Jiri, thanks for the patch. This looks good to me - after applying it it sill works for me. Adam, can you try applying this and see if it fixes the issue for you?
I tried the patch. Works perfectly for me!
Review of attachment 337823 [details] [review]: Patch pushed to master as commit 199a39d. Thanks for the patch and testing, guys!