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 -
This commit is contained in:
ondrej 2017-03-15 17:51:27 +00:00
parent 212245d761
commit 98f78a3107

View File

@ -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;