mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Catch another exception
Spotted by coverity.
This commit is contained in:
parent
ba39d2de04
commit
ad20dac17f
@ -403,7 +403,12 @@ void Loader::Impl::resetFile(FileName const & file)
|
|||||||
continue_monitoring = cached_item_->monitoring();
|
continue_monitoring = cached_item_->monitoring();
|
||||||
// cached_item_ is going to be reset, so the connected
|
// cached_item_ is going to be reset, so the connected
|
||||||
// signal needs to be disconnected.
|
// signal needs to be disconnected.
|
||||||
|
try {
|
||||||
|
// This can in theory throw a BufferException
|
||||||
sc_.disconnect();
|
sc_.disconnect();
|
||||||
|
} catch (...) {
|
||||||
|
LYXERR(Debug::GRAPHICS, "Unable to disconnect signal.");
|
||||||
|
}
|
||||||
cached_item_.reset();
|
cached_item_.reset();
|
||||||
if (status_ != Converting) {
|
if (status_ != Converting) {
|
||||||
Cache::get().remove(old_file);
|
Cache::get().remove(old_file);
|
||||||
|
Loading…
Reference in New Issue
Block a user