// Buffer creation is not possible.
return 0;
}
- if (!b->loadLyXFile(filename)) {
+ if (b->loadLyXFile(filename) != Buffer::ReadSuccess) {
// do not save an emergency file when releasing the buffer
b->markClean();
theBufferList().release(b);
tname = makeAbsPath(templatename);
if (!tname.empty()) {
- if (!b->readFile(tname)) {
+ if (b->readFile(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."),
// Buffer creation is not possible.
return 0;
- if (!buffer->loadLyXFile(fname)) {
+ if (buffer->loadLyXFile(fname) != Buffer::ReadSuccess) {
//close the buffer we just opened
theBufferList().release(buffer);
return 0;