if (ok) {
if (response.empty())
response = empty;
+ //shell collisions
+ response = subst(response, from_utf8("\""), from_utf8("\\\""));
log = vcs->checkIn(to_utf8(response));
// Reserve empty string for cancel button
}
-void LyXVC::revert()
+bool LyXVC::revert()
{
LYXERR(Debug::LYXVC, "LyXVC: revert");
ret = Alert::prompt(_("Revert to stored version of document?"),
text, 0, 1, _("&Revert"), _("&Cancel"));
- if (ret == 0)
- vcs->revert();
+ return ret == 0 && vcs->revert();
}