Merge pull request #115840 from SpikeTrapBoomStudios/fix-floating-dock-crash
Properly handle closing floating docks
This commit is contained in:
commit
3d113f4052
1 changed files with 4 additions and 1 deletions
|
|
@ -578,7 +578,10 @@ void EditorDockManager::close_dock(EditorDock *p_dock) {
|
|||
}
|
||||
|
||||
p_dock->is_open = false;
|
||||
p_dock->get_parent_container()->dock_closed(p_dock);
|
||||
DockTabContainer *parent_container = p_dock->get_parent_container();
|
||||
if (parent_container) {
|
||||
parent_container->dock_closed(p_dock);
|
||||
}
|
||||
|
||||
// Hide before moving to remove inconsistent signals.
|
||||
p_dock->hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue