From df20e5935fbdaf7d27f924e4e2ea87707d8a2314 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 7 Nov 2007 05:09:10 +0000 Subject: 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 --- gtk2_ardour/sfdb_ui.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/sfdb_ui.cc') 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)); + } } } -- cgit v1.2.3