From: Abdelrazak Younes Date: Mon, 4 Sep 2006 09:48:51 +0000 (+0000) Subject: Fixes a MSVC/Qt4 crash when closing the Document Settings dialog. X-Git-Tag: 1.6.10~12648 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b05e4c7a82f5f13488e52bf4499312d2a49a0d57;p=features.git 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 --- diff --git a/src/frontends/Dialogs.C b/src/frontends/Dialogs.C index 2a532f70be..7e117b0df3 100644 --- a/src/frontends/Dialogs.C +++ b/src/frontends/Dialogs.C @@ -157,7 +157,8 @@ void Dialogs::disconnect(string const & name) if (!isValidName(name)) return; - open_insets_[name] = 0; + if (open_insets_.find(name) != open_insets_.end()) + open_insets_[name] = 0; }