#include "support/filetools.h"
#include "support/lyxlib.h"
-#include "BoostFormat.h"
+#include "support/BoostFormat.h"
#include <unistd.h>
text += file + _(" has unsaved changes.\n\nDo you want to save the document?");
#endif
int const ret = Alert::prompt(_("Save changed document?"),
- text, 0, _("&Save"), _("&Cancel"));
+ text, 0, 1, _("&Save"), _("&Cancel"));
if (ret == 0) {
vcs->owner()->getUser()->owner()->dispatch(FuncRequest(LFUN_MENUWRITE));
// there must be a file to save
if (!IsFileReadable(filename)) {
- Alert::alert(_("File not saved"),
- _("You must save the file"),
- _("before it can be registered."));
+ Alert::error(_("Document not saved"),
+ _("You must save the document "
+ "before it can be registered."));
return;
}
if (!tmp.first || tmp.second.empty()) {
// should we insist on checking tmp.second.empty()?
lyxerr[Debug::LYXVC] << "LyXVC: user cancelled" << endl;
- Alert::alert(_("Info"),
- _("This document has NOT been registered."));
return;
}
text += file + _(" will lose all current changes.\n\nDo you want to revert to the saved version?");
#endif
int const ret = Alert::prompt(_("Revert to stored version of document?"),
- text, 1, _("&Revert"), _("&Cancel"));
+ text, 0, 1, _("&Revert"), _("&Cancel"));
if (ret == 0)
vcs->revert();