diff options
author | Carl Hetherington <carl@carlh.net> | 2010-05-19 23:36:40 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-05-19 23:36:40 +0000 |
commit | ed74a898202e006f9d041cd748c89a9001f095ef (patch) | |
tree | 945a7005fc0415d74c43d3d95938d49742a2881b /gtk2_ardour/sfdb_ui.cc | |
parent | 03bed9a8cbce3cdc6c00040967f58686e91536ca (diff) |
Give a better message to warn of unsupported MIDI file audition.
git-svn-id: svn://localhost/ardour2/branches/3.0@7121 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r-- | gtk2_ardour/sfdb_ui.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index e17dc0304c..2e6235e70c 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -308,6 +308,11 @@ SoundFileBox::audition () return; } + if (SMFSource::safe_midi_file_extension (path)) { + error << _("Auditioning of MIDI files is not yet supported") << endmsg; + return; + } + _session->cancel_audition(); if (!Glib::file_test (path, Glib::FILE_TEST_EXISTS)) { |