diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-11-07 05:09:19 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-11-07 05:09:19 +0000 |
commit | 5cd58a2e8bbc7e3d2face30ad0bf8e307ab395fa (patch) | |
tree | b911b52af571a5fdd387bc2482718461f689c34f /gtk2_ardour/sfdb_ui.cc | |
parent | 677b6f2d304d703390d69009fcf230785a5e0a44 (diff) |
stop auto-play from trying to play things that are not soundfiles
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2604 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 7a1476f275..aef6c3852c 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -552,10 +552,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)); + } } } |