- LYXERR(Debug::LYXVC) << "LyXVC: registrer" << endl;
- pair<bool, docstring> tmp =
- Alert::askForText(_("LyX VC: Initial description"),
- _("(no initial description)"));
- if (!tmp.first || tmp.second.empty()) {
- // should we insist on checking tmp.second.empty()?
- LYXERR(Debug::LYXVC) << "LyXVC: user cancelled" << endl;
+ LYXERR(Debug::LYXVC, "LyXVC: registrer");
+ docstring response;
+ bool ok = Alert::askForText(response, _("LyX VC: Initial description"),
+ _("(no initial description)"));
+ if (!ok || response.empty()) {
+ // should we insist on checking response.empty()?
+ LYXERR(Debug::LYXVC, "LyXVC: user cancelled");