fix "import at file position" when copying or channel-splitting files on import.
[ardour.git] / libs / ardour / tempo_map_importer.cc
index 1f9f5186148b884affd6b7962a3d72e802965269..f0447b2f82cd060b62e2daf55d600bae9eb92e1b 100644 (file)
@@ -23,9 +23,8 @@
 #include <sstream>
 
 #include "ardour/session.h"
+#include "ardour/tempo.h"
 #include "pbd/failed_constructor.h"
-#include "pbd/compose.h"
-#include "pbd/error.h"
 
 #include "i18n.h"
 
@@ -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<bool> replace = Prompt (_("This will replace the current tempo map!\nAre you shure you want to do this?"));
+       return replace.get_value_or (false);
 }
 
 void