mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 21:55:29 +00:00
Fixes a MSVC/Qt4 crash when closing the Document Settings dialog.
* Dialogs::disconnect(string const & name): check if the dialog is an inset before resetting open_insets_ git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14889 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6ceff16584
commit
b05e4c7a82
@ -157,6 +157,7 @@ void Dialogs::disconnect(string const & name)
|
|||||||
if (!isValidName(name))
|
if (!isValidName(name))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (open_insets_.find(name) != open_insets_.end())
|
||||||
open_insets_[name] = 0;
|
open_insets_[name] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user