Skip to content

Commit 4ff1e49

Browse files
committed
Clear selection before clearing workspace so root control isn't grabbed after new document is started
1 parent 53e9b45 commit 4ff1e49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Editor/EditorApp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ namespace RTEGUI {
269269
}
270270
}
271271
m_ActiveFileName.clear();
272+
m_EditorManager->ClearCurrentSelection();
272273
m_EditorManager->GetWorkspaceManager()->Clear();
273274
m_EditorManager->CreateRootControl();
274275
m_EditorManager->UpdateCollectionBoxList();

0 commit comments

Comments
 (0)