X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.cpp;h=7522dce4343938d433bf26fed31bada34d1be385;hb=refs%2Fheads%2Fbugs%2F13017;hp=732ca7e323f109503f546ec17d0d18fbe24cae59;hpb=2ad57dcb6b9b54b6d0aa43b4729c3ea480f6d51c;p=lyx.git diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 732ca7e323..7522dce434 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2689,6 +2689,11 @@ bool Buffer::citeLabelsValid() const void Buffer::removeBiblioTempFiles() const { + if (theApp()->isBufferBusy(this)) { + removeBiblioTemps = true; + return; + } + // We remove files that contain LaTeX commands specific to the // particular bibliographic style being used, in order to avoid // LaTeX errors when we switch style. @@ -2702,6 +2707,7 @@ void Buffer::removeBiblioTempFiles() const Buffer const * const pbuf = parent(); if (pbuf) pbuf->removeBiblioTempFiles(); + removeBiblioTemps = false; }