X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Ftempo_map_importer.cc;h=b170aea8ea9a2bfb2389f227e383369335aafb4c;hb=ecbd2ebb7446f9f3069145ea8b233e30a9218060;hp=1d37383fb5bc65424427939365ddcf1cb7261668;hpb=bb9cc45cd22af67ac275a5e73accbe14fee664d8;p=ardour.git diff --git a/libs/ardour/tempo_map_importer.cc b/libs/ardour/tempo_map_importer.cc index 1d37383fb5..b170aea8ea 100644 --- a/libs/ardour/tempo_map_importer.cc +++ b/libs/ardour/tempo_map_importer.cc @@ -87,8 +87,8 @@ bool TempoMapImporter::_prepare_move () { // Prompt user for verification - bool replace = Prompt (_("This will replace the current tempo map!\nAre you shure you want to do this?")); - return replace; + boost::optional replace = Prompt (_("This will replace the current tempo map!\nAre you shure you want to do this?")); + return replace.get_value_or (false); } void @@ -99,5 +99,5 @@ TempoMapImporter::_cancel_move () void TempoMapImporter::_move () { - session.tempo_map().set_state (xml_tempo_map); + session.tempo_map().set_state (xml_tempo_map, Stateful::current_state_version); }