Browse Source

Properly close widgets when changing layout

BearishSun 10 years ago
parent
commit
750d34dbe4
1 changed files with 1 additions and 1 deletions
  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);
 					}