GNOME Bugzilla – Bug 349359
Dates added with the calendar dialog aren't preserved
Last modified: 2006-09-09 21:21:38 UTC
When I use the calendar control on the details tab to set a date value, it doesn't get saved. When I go back to the list view after setting a date with the calendar control, the value isn't there. In order to enter a date on the details tab, I have to type it in manually.
Thanks. What version of Glom, and what distro is this?
I'm using version 1.0.3 in Ubuntu.
I can comfirm this. Seems like the changed signal is somehow not emitted. I will try to fix this.
Created attachment 72405 [details] [review] Patch for #349359 OK, so the problem is simply that the entry never get the focus and thus the focus_out_event used for saving never occurs. This patch fixes this by giving the entry the focus after the date was selected. Patch was sponsered by Openismus Gmbh!
Created attachment 72447 [details] [review] 349359_v2.patch This patch just emits the edited signal instead. That seems more explicit, and it's what we do elsewhere, and it seems to work. I have committed this.
Sorry, please ignore the changes to util.cc in that patch. That's a different work in progress.
Hi Murray! I tried emitting the signal directly but this gave me some strage gda-warnings so I searched for another solution. But if this works for you it's OK! Regards, Johannes
In Detail, it gives me the following: debug: Box_Data_List::refresh_data_from_database_blank(): before refresh_from_database_blank(). Regards, Johannes
After some testing I think the message comes from some other part, so that should be no problem - sorry!