X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferlist.C;h=4620d6b1ab8250283828aa9c3c297eea754a37d8;hb=7c98b3bd37f41ad05e9770d66774f999fbd17ff8;hp=3766b37cc6190e6ad1d8ab1c5e3426c29c37de80;hpb=1dc25c472f3001b5e558f6dc4d471d8c4401fb1d;p=lyx.git diff --git a/src/bufferlist.C b/src/bufferlist.C index 3766b37cc6..4620d6b1ab 100644 --- a/src/bufferlist.C +++ b/src/bufferlist.C @@ -141,7 +141,7 @@ bool BufferList::qwriteAll() BufferStorage::iterator it = bstore.begin(); BufferStorage::iterator end = bstore.end(); for (; it != end; ++it) { - if (!(*it)->isLyxClean()) { + if (!(*it)->isClean()) { string fname; if ((*it)->isUnnamed()) fname = OnlyFilename((*it)->fileName()); @@ -181,7 +181,7 @@ bool BufferList::close(Buffer * buf) if (buf->getUser()) buf->getUser()->insetUnlock(); - if (buf->paragraph && !buf->isLyxClean() && !quitting) { + if (buf->paragraph && !buf->isClean() && !quitting) { if (buf->getUser()) buf->getUser()->owner()->prohibitInput(); string fname; @@ -301,7 +301,7 @@ void BufferList::emergencyWrite(Buffer * buf) // No need to save if the buffer has not changed. - if (buf->isLyxClean()) + if (buf->isClean()) return; lyxerr << fmt(_("lyx: Attempting to save document %s as..."), @@ -315,8 +315,8 @@ void BufferList::emergencyWrite(Buffer * buf) string s = buf->fileName(); s += ".emergency"; lyxerr << " " << s << endl; - if (buf->writeFile(s, true)) { - buf->markLyxClean(); + if (buf->writeFile(s)) { + buf->markClean(); lyxerr << _(" Save seems successful. Phew.") << endl; return; } else { @@ -328,8 +328,8 @@ void BufferList::emergencyWrite(Buffer * buf) string s = AddName(GetEnvPath("HOME"), buf->fileName()); s += ".emergency"; lyxerr << " " << s << endl; - if (buf->writeFile(s, true)) { - buf->markLyxClean(); + if (buf->writeFile(s)) { + buf->markClean(); lyxerr << _(" Save seems successful. Phew.") << endl; return; } @@ -342,8 +342,8 @@ void BufferList::emergencyWrite(Buffer * buf) s = AddName(MakeAbsPath("/tmp/"), buf->fileName()); s += ".emergency"; lyxerr << " " << s << endl; - if (buf->writeFile(s, true)) { - buf->markLyxClean(); + if (buf->writeFile(s)) { + buf->markClean(); lyxerr << _(" Save seems successful. Phew.") << endl; return; }