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:
Abdelrazak Younes 2006-09-04 09:48:51 +00:00
parent 6ceff16584
commit b05e4c7a82

View File

@ -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;
} }