diff --git a/Sofa/GUI/Common/src/sofa/gui/common/GUIManager.cpp b/Sofa/GUI/Common/src/sofa/gui/common/GUIManager.cpp index a55761fe52d..ae6b3039163 100644 --- a/Sofa/GUI/Common/src/sofa/gui/common/GUIManager.cpp +++ b/Sofa/GUI/Common/src/sofa/gui/common/GUIManager.cpp @@ -251,6 +251,7 @@ void GUIManager::closeGUI() if(currentGUI) { currentGUI->closeGUI(); + currentGUI = nullptr; } else {