diff --git a/OpenRA.Mods.Common/Widgets/Logic/Editor/ActorEditLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Editor/ActorEditLogic.cs index a63c4f5c75..735f349154 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Editor/ActorEditLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Editor/ActorEditLogic.cs @@ -377,11 +377,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic actorEditPanel.Bounds.X = origin.X + editPanelPadding; actorEditPanel.Bounds.Y = origin.Y; } - else + else if (CurrentActor != null) { // Selected actor is null, hide the border and edit panel. - actorIDField.YieldKeyboardFocus(); - CurrentActor = null; + Close(); } }