if (!Alert::prompt(_("Reload saved document?"),
text, 0, 1, _("&Reload"), _("&Keep Changes"))) {
// reload the document
- if (!checkBuffer->reload())
+ if (checkBuffer->reload() != Buffer::ReadSuccess)
return 0;
}
return checkBuffer;
tname = makeAbsPath(templatename);
if (!tname.empty()) {
- if (b->readFile(tname) != Buffer::ReadSuccess) {
+ if (b->loadThisLyXFile(tname) != Buffer::ReadSuccess) {
docstring const file = makeDisplayPath(tname.absFileName(), 50);
docstring const text = bformat(
_("The specified document template\n%1$s\ncould not be read."),