From b05e4c7a82f5f13488e52bf4499312d2a49a0d57 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 4 Sep 2006 09:48:51 +0000 Subject: [PATCH] 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 --- src/frontends/Dialogs.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2