Ver Fonte

Properly close widgets when changing layout

BearishSun há 10 anos atrás
pai
commit
750d34dbe4
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      BansheeEditor/Source/BsDockManager.cpp

+ 1 - 1
BansheeEditor/Source/BsDockManager.cpp

@@ -674,7 +674,7 @@ namespace BansheeEngine
 					for (UINT32 i = 0; i < numWidgets; i++)
 					{
 						EditorWidgetBase* curWidget = container->mWidgets->getWidget(0);
-						container->mWidgets->remove(*curWidget);
+						EditorWidgetManager::instance().close(curWidget);
 
 						undockedWidgets.push_back(curWidget);
 					}