diff --git a/tools/GUIEditor/CGUIEditWorkspace.cpp b/tools/GUIEditor/CGUIEditWorkspace.cpp index 9934c1d8..43573c53 100644 --- a/tools/GUIEditor/CGUIEditWorkspace.cpp +++ b/tools/GUIEditor/CGUIEditWorkspace.cpp @@ -854,7 +854,6 @@ void CGUIEditWorkspace::clearParentElements() if ( el->isMyChild(Environment->getFocus()) ) Environment->setFocus(0); - // remove all children except first one (EditorWindow) while (!el->getChildren().empty()) { el->removeChild(*(el->getChildren().begin()));