]> git.lyx.org Git - features.git/commitdiff
Fixes a MSVC/Qt4 crash when closing the Document Settings dialog.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 4 Sep 2006 09:48:51 +0000 (09:48 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 4 Sep 2006 09:48:51 +0000 (09:48 +0000)
* 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

index 2a532f70bee4b46a2c94001e58ca62118dd5aab9..7e117b0df355c7b2db53d7fbda35a139932ff9e2 100644 (file)
@@ -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;
 }