summaryrefslogtreecommitdiff
path: root/libs/ardour/export_profile_manager.cc
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2012-01-22 18:02:27 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2012-01-22 18:02:27 +0000
commit09d1fbd6c141b0d209b425df9488f4f0400d72c3 (patch)
treedf575f96b54963737e078b3e6495c07e08d1a5fd /libs/ardour/export_profile_manager.cc
parente317386c5cde5741a8279bf480240293720d6788 (diff)
Add warnings for overwriting marker files
git-svn-id: svn://localhost/ardour2/branches/3.0@11305 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/export_profile_manager.cc')
-rw-r--r--libs/ardour/export_profile_manager.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc
index 7eaa7c0632..459f878596 100644
--- a/libs/ardour/export_profile_manager.cc
+++ b/libs/ardour/export_profile_manager.cc
@@ -840,6 +840,23 @@ ExportProfileManager::check_config (boost::shared_ptr<Warnings> warnings,
warnings->conflicting_filenames.push_back (path);
}
}
+
+ // TODO check what happens with split channel configs...
+ string path = filename->get_path (format);
+
+ if (format->with_toc()) {
+ string marker_file = handler->get_cd_marker_filename(path, CDMarkerTOC);
+ if (sys::exists (sys::path (marker_file))) {
+ warnings->conflicting_filenames.push_back (marker_file);
+ }
+ }
+
+ if (format->with_cue()) {
+ string marker_file = handler->get_cd_marker_filename(path, CDMarkerCUE);
+ if (sys::exists (sys::path (marker_file))) {
+ warnings->conflicting_filenames.push_back (marker_file);
+ }
+ }
}
}