sfdb UI should not crash if there's no auditioner

This commit is contained in:
Paul Davis 2024-04-02 18:03:04 -06:00
parent 5d1233e60a
commit ad53c31e50
1 changed files with 3 additions and 1 deletions

View File

@ -322,7 +322,9 @@ bool
SoundFileBox::seek_button_release (GdkEventButton*)
{
_seeking = false;
_session->the_auditioner()->seek_to_percent(seek_slider.get_value() / 10.0);
if (_session->the_auditioner()) {
_session->the_auditioner()->seek_to_percent(seek_slider.get_value() / 10.0);
}
seek_slider.set_sensitive (false);
return false; // pass on to slider
}