mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 23:25:56 +02:00
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:
parent
212245d761
commit
98f78a3107
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user