Remove tempo-map cut/copy section warning

This commit is contained in:
Robin Gareus 2023-09-11 23:04:00 +02:00
parent d064a2ead1
commit 964600b9bd
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -2710,22 +2710,6 @@ Editor::cut_copy_section (ARDOUR::SectionOperation const op)
if (!get_selection_extents (start, end) || !_session) {
return;
}
#if 0
TempoMap::SharedPtr tmap (TempoMap::use());
if ((tmap->tempos ().size () > 1 || tmap->meters ().size () > 1 || tmap->bartimes ().size () > 1) && UIConfiguration::instance().get_ask_cut_copy_section_tempo_map ()) {
ArdourMessageDialog msg (_("Cut/Copy Section does not yet include the Tempo Map\nDo you still want to proceed?"), false, MESSAGE_QUESTION, BUTTONS_YES_NO, true) ;
msg.set_title (_("Cut/Copy without Tempo Map"));
Gtk::CheckButton cb (_("Do not show this dialog again."));
msg.get_vbox()->pack_start (cb);
cb.show ();
if (msg.run () != RESPONSE_YES) {
return;
}
if (cb.get_active ()) {
UIConfiguration::instance().set_ask_cut_copy_section_tempo_map (false);
}
}
#endif
timepos_t to (get_preferred_edit_position ());
_session->cut_copy_section (start, end, to, op);