X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverterCache.cpp;h=56a39c775d76da772180919699623742d7a34c99;hb=14001c49fe0fb3d95a0f69f63344e7ae59d28180;hp=813243f48b0ae47db60e43c92860f3fa3fe0b21b;hpb=9b4a26a252b2da164fcd6aa84feed0a738b16c10;p=lyx.git diff --git a/src/ConverterCache.cpp b/src/ConverterCache.cpp index 813243f48b..56a39c775d 100644 --- a/src/ConverterCache.cpp +++ b/src/ConverterCache.cpp @@ -216,9 +216,6 @@ ConverterCache::ConverterCache() ConverterCache::~ConverterCache() { - if (!lyxrc.use_converter_cache) - return; - pimpl_->writeIndex(); delete pimpl_; } @@ -248,6 +245,12 @@ void ConverterCache::init() } +void ConverterCache::writeIndex() const +{ + pimpl_->writeIndex(); +} + + void ConverterCache::add(FileName const & orig_from, string const & to_format, FileName const & converted_file) const {