Selection::clear_time() should follow the same pattern as Selection::clear_*

i.e. only do something if there was an existing time selection.

This also fixes an early-use-bug-crash for _superclock_ticks_per_second
This commit is contained in:
Paul Davis
2025-08-06 15:05:16 -06:00
parent 6538287b6c
commit 304f64a9ba

View File

@@ -140,9 +140,12 @@ Selection::clear_objects (bool with_signal)
void
Selection::clear_time (bool with_signal)
{
time.clear();
if (with_signal) {
TimeChanged ();
if (!time.empty()) {
time.clear();
if (with_signal) {
TimeChanged ();
}
}
}