Bug 797707 - CSV Transaction Export: custom dates should be insensitive by default

By default the absolute date selector needs to be made
insensitive. Selecting 'Custom Start/End date' will enable
sensitivity.
This commit is contained in:
Christopher Lam 2020-05-03 11:43:19 +08:00
parent 6a3fabc30d
commit 2f0639235a

View File

@ -938,6 +938,7 @@ csv_export_assistant_create (CsvExportInfo *info)
/* Start date info */
info->csvd.start_date = gnc_date_edit_new (gnc_time (NULL), FALSE, FALSE);
gtk_widget_set_sensitive (info->csvd.start_date, FALSE);
hbox = GTK_WIDGET(gtk_builder_get_object (builder, "start_date_hbox"));
gtk_box_pack_start (GTK_BOX(hbox), info->csvd.start_date, TRUE, TRUE, 0);
gtk_widget_show (info->csvd.start_date);
@ -947,6 +948,7 @@ csv_export_assistant_create (CsvExportInfo *info)
/* End date info */
info->csvd.end_date = gnc_date_edit_new (gnc_time (NULL), FALSE, FALSE);
gtk_widget_set_sensitive (info->csvd.end_date, FALSE);
hbox = GTK_WIDGET(gtk_builder_get_object (builder, "end_date_hbox"));
gtk_box_pack_start (GTK_BOX(hbox), info->csvd.end_date, TRUE, TRUE, 0);
gtk_widget_show (info->csvd.end_date);