mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
sfdb UI should not crash if there's no auditioner
This commit is contained in:
parent
58a098ddec
commit
2b80d99587
1 changed files with 3 additions and 1 deletions
|
|
@ -322,7 +322,9 @@ bool
|
||||||
SoundFileBox::seek_button_release (GdkEventButton*)
|
SoundFileBox::seek_button_release (GdkEventButton*)
|
||||||
{
|
{
|
||||||
_seeking = false;
|
_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);
|
seek_slider.set_sensitive (false);
|
||||||
return false; // pass on to slider
|
return false; // pass on to slider
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue