return;
}
- SoundFileOmega sfdb (_("Add existing audio to session"));
+ SoundFileOmega sfdb (_("Add existing audio to session"), session);
sfdb.set_mode (mode);
switch (sfdb.run()) {
/* lets see if we can link it into the session */
linked_path = session->sound_dir();
- linked_path += PBD::basename (path);
+ linked_path += Glib::path_get_basename (path);
if (link (path.c_str(), linked_path.c_str()) == 0) {
if (check_sample_rate && (finfo.samplerate != (int) session->frame_rate())) {
vector<string> choices;
- choices.push_back (_("Embed it anyway"));
-
if (multiple_files) {
+ choices.push_back (_("Cancel entire import"));
choices.push_back (_("Don't embed it"));
choices.push_back (_("Embed all without questions"));
- choices.push_back (_("Cancel entire import"));
} else {
choices.push_back (_("Cancel"));
}
+
+ choices.push_back (_("Embed it anyway"));
Gtkmm2ext::Choice rate_choice (
string_compose (_("%1\nThis audiofile's sample rate doesn't match the session sample rate!"), path),
choices, false);
switch (rate_choice.run()) {
- case 0: /* do it */
- break;
+ case 0: /* stop a multi-file import */
case 1: /* don't import this one */
return -1;
case 2: /* do it, and the rest without asking */
check_sample_rate = false;
break;
- case 3: /* stop a multi-file import */
+ case 3: /* do it */
+ break;
default:
return -2;
}