X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.cpp;h=9b8730d4658f080f398f3b1917b26efbc843ca04;hb=2098f1d8c20d51e63e670bcdc9da8996068975bf;hp=d922ae7eb753fdd1c1f09ddd112c369620a8f9ff;hpb=012be55afdfd7a6fc3b289972b6db7bcda1ebe53;p=lyx.git diff --git a/src/Buffer.cpp b/src/Buffer.cpp index d922ae7eb7..9b8730d465 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1647,18 +1647,16 @@ BiblioInfo const & Buffer::localBibInfo() const void Buffer::checkBibInfoCache() const { - if (d->bibinfoCacheValid_) { - support::FileNameList const & bibfilesCache = getBibfilesCache(); - // compare the cached timestamps with the actual ones. - support::FileNameList::const_iterator ei = bibfilesCache.begin(); - support::FileNameList::const_iterator en = bibfilesCache.end(); - for (; ei != en; ++ ei) { - time_t lastw = ei->lastModified(); - if (lastw != d->bibfileStatus_[*ei]) { - d->bibinfoCacheValid_ = false; - d->bibfileStatus_[*ei] = lastw; - break; - } + support::FileNameList const & bibfilesCache = getBibfilesCache(); + // compare the cached timestamps with the actual ones. + support::FileNameList::const_iterator ei = bibfilesCache.begin(); + support::FileNameList::const_iterator en = bibfilesCache.end(); + for (; ei != en; ++ ei) { + time_t lastw = ei->lastModified(); + time_t prevw = d->bibfileStatus_[*ei]; + if (lastw != prevw) { + d->bibinfoCacheValid_ = false; + d->bibfileStatus_[*ei] = lastw; } }