correct usage of return value from Session::Prompt signal

git-svn-id: svn://localhost/ardour2/branches/3.0@6417 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis
2009-12-30 19:44:46 +00:00
parent d9c9acaa80
commit b194253b1e

View File

@@ -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<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