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:
Paul Davis 2007-11-07 05:09:10 +00:00
parent 8e73c9ee80
commit df20e5935f
1 changed files with 4 additions and 4 deletions

View File

@ -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));
}
}
}