summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-11-07 05:09:10 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-11-07 05:09:10 +0000
commitdf20e5935fbdaf7d27f924e4e2ea87707d8a2314 (patch)
treea8fae8954cc1dc9700c4b83d3bb872d98aadfb46 /gtk2_ardour/sfdb_ui.cc
parent8e73c9ee80c260c58698894332f08769e9f1ac22 (diff)
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
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r--gtk2_ardour/sfdb_ui.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 9c034b089f..3bde6c98f1 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -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));
+ }
}
}