mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +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,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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user