X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Ftempo_map_importer.cc;h=91e2320337d17fdc4e18091d279d4dfb1fbc8442;hb=8139becb1898187729b0ea57f145302d4975bf3a;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..91e2320337 100644 --- a/libs/ardour/tempo_map_importer.cc +++ b/libs/ardour/tempo_map_importer.cc @@ -23,11 +23,10 @@ #include #include "ardour/session.h" +#include "ardour/tempo.h" #include "pbd/failed_constructor.h" -#include "pbd/compose.h" -#include "pbd/error.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace std; using namespace PBD; @@ -87,8 +86,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 sure you want to do this?")); + return replace.get_value_or (false); } void @@ -99,5 +98,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); }