stop auto-play from trying to play things that are not soundfiles
git-svn-id: svn://localhost/ardour2/trunk@2603 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8e73c9ee80
commit
df20e5935f
@ -555,10 +555,10 @@ SoundFileBrowser::on_custom (const FileFilter::Info& filter_info)
|
||||
void
|
||||
SoundFileBrowser::update_preview ()
|
||||
{
|
||||
preview.setup_labels (chooser.get_filename());
|
||||
|
||||
if (preview.autoplay()) {
|
||||
Glib::signal_idle().connect (mem_fun (preview, &SoundFileBox::audition_oneshot));
|
||||
if (preview.setup_labels (chooser.get_filename())) {
|
||||
if (preview.autoplay()) {
|
||||
Glib::signal_idle().connect (mem_fun (preview, &SoundFileBox::audition_oneshot));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user