text += file + _(" has unsaved changes.\n\nWhat do you want to do with it?");
#endif
int const ret = Alert::prompt(_("Save changed document?"),
- text, 0, 2, _("&Save"), _("&Discard"), _("&Cancel"));
+ text, 0, 2, _("&Save Changes"), _("&Discard Changes"), _("&Cancel"));
if (ret == 0) {
// FIXME: WriteAs can be asynch !
text += fname + _(" has unsaved changes.\n\nWhat do you want to do with it?");
#endif
int const ret = Alert::prompt(_("Save changed document?"),
- text, 0, 2, _("&Save"), _("&Discard"), _("&Cancel"));
+ text, 0, 2, _("&Save Changes"), _("&Discard Changes"), _("&Cancel"));
if (ret == 0) {
if (buf->isUnnamed()) {
// emergency file.
b->markDirty();
use_emergency = true;
- } else {
- // Here, we should delete the emergency save
- lyx::unlink(e);
}
}
}
#endif
Alert::error(_("Could not read template"), text);
// no template, start with empty buffer
- b->paragraphs.set(new Paragraph);
+ b->paragraphs.push_back(new Paragraph);
b->paragraphs.begin()->layout(b->params.getLyXTextClass().defaultLayout());
}
} else { // start with empty buffer
- b->paragraphs.set(new Paragraph);
+ b->paragraphs.push_back(new Paragraph);
b->paragraphs.begin()->layout(b->params.getLyXTextClass().defaultLayout());
}
b->setReadonly(false);
b->updateDocLang(b->params.language);
-
+
return b;
}