diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index f45b17ba7..d8658d3d6 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -219,7 +219,7 @@ NewGUI::newDialog (SGPropertyNode* props) return; } string name = cname; - if(!_active_dialogs[name]) + if(_active_dialogs.find(name) == _active_dialogs.end()) _dialog_props[name] = props; }