From 98f78a3107c375af8b9989289e4f6fd511bb1424 Mon Sep 17 00:00:00 2001 From: ondrej Date: Wed, 15 Mar 2017 17:51:27 +0000 Subject: [PATCH] IDE: execute source editor commands even if no editor is available - it doesn't have to be needed. Issue #30894 git-svn-id: trunk@54412 - --- ide/sourceeditor.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index 958222c51e..e212a28918 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -1433,7 +1433,11 @@ begin if not (Sender is TIDESpecialCommand) then exit; if TIDESpecialCommand(Sender).Command = nil then exit; ActEdit := SourceEditorManager.ActiveEditor; - if ActEdit = nil then exit; + if ActEdit = nil then + begin + TIDESpecialCommand(Sender).Command.Execute(Sender); + exit; + end; r := TIDESpecialCommand(Sender).Command.OnExecuteProc = @ExecuteIdeMenuClick; if r then TIDESpecialCommand(Sender).Command.OnExecuteProc := nil;