summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_audio_import.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-05-13 19:55:52 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-05-13 19:55:52 +0000
commitc3c8530ffc2b554df6fc79036db117d8fd5ddb54 (patch)
treea6118044fdaa3b6fd7ab9ac5b3f05cc53f01ce34 /gtk2_ardour/editor_audio_import.cc
parent41b23ca647c100a3e2cd1641aff52f77216db803 (diff)
initial volley of work for AudioPlaylistSource, the basic prototype for sources-that-are-nested
git-svn-id: svn://localhost/ardour2/branches/3.0@9508 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_audio_import.cc')
-rw-r--r--gtk2_ardour/editor_audio_import.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_audio_import.cc b/gtk2_ardour/editor_audio_import.cc
index 9b8064a138..4a7c8c5654 100644
--- a/gtk2_ardour/editor_audio_import.cc
+++ b/gtk2_ardour/editor_audio_import.cc
@@ -750,7 +750,13 @@ Editor::add_sources (vector<string> paths, SourceList& sources, framepos_t& pos,
just_one.clear ();
just_one.push_back (*x);
- region_name = region_name_from_path ((*x)->path(), false, false, sources.size(), n);
+ boost::shared_ptr<FileSource> fs = boost::dynamic_pointer_cast<FileSource> (*x);
+
+ if (fs) {
+ region_name = region_name_from_path (fs->path(), false, false, sources.size(), n);
+ } else{
+ region_name = (*x)->name();
+ }
PropertyList plist;