Catch another exception

Spotted by coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2017-03-31 14:00:46 +02:00
parent ba39d2de04
commit ad20dac17f

View File

@ -403,7 +403,12 @@ void Loader::Impl::resetFile(FileName const & file)
continue_monitoring = cached_item_->monitoring();
// cached_item_ is going to be reset, so the connected
// signal needs to be disconnected.
sc_.disconnect();
try {
// This can in theory throw a BufferException
sc_.disconnect();
} catch (...) {
LYXERR(Debug::GRAPHICS, "Unable to disconnect signal.");
}
cached_item_.reset();
if (status_ != Converting) {
Cache::get().remove(old_file);