]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsLoader.cpp
* sk.po
[lyx.git] / src / graphics / GraphicsLoader.cpp
index 3e6664651e4cc2e4ebfbe786f9ed7523721fc80e..82c5b1afda35f702e3c6eb5e1cc7a0a3ebe354f7 100644 (file)
@@ -368,7 +368,11 @@ void Loader::Impl::resetFile(FileName const & file)
                // signal needs to be disconnected.
                sc_.disconnect();
                cached_item_.reset();
-               Cache::get().remove(old_file);
+               if (status_ != Converting) {
+                       Cache::get().remove(old_file);
+               } else {
+                       //TODO remove cache item when it is not busy any more, see #7163
+               }
        }
 
        status_ = cached_item_.get() ? cached_item_->status() : WaitingToLoad;