Export dialog: update state after "Select All" and "Deselect All"

The state was inconsistent after using the "All" buttons, causing
confusing behaviour. Most visibly, the message "No timespan has been
selected!" message and the disabling of the "Export" button were not
cleared.

Fixed by making
ExportTimespanSelector::set_selection_state_of_all_timespans call
update_timespans and CriticalSelectionChanged , like for example
ExportTimespanSelector::update_range_name and
ExportTimespanSelectorMultiple::update_selection do.
This commit is contained in:
Mads Kiilerich 2022-05-12 12:52:43 +02:00 committed by Robin Gareus
parent 41815f8d53
commit 2a2b2c8b36
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 3 additions and 0 deletions

View File

@ -388,6 +388,9 @@ ExportTimespanSelector::set_selection_state_of_all_timespans (bool s)
for (Gtk::ListStore::Children::iterator it = range_list->children().begin(); it != range_list->children().end(); ++it) {
it->set_value (range_cols.selected, s);
}
update_timespans ();
CriticalSelectionChanged ();
}
/*** ExportTimespanSelectorSingle ***/