Debugger: fix warning about project debugger backend in global options

This commit is contained in:
Martin 2022-09-09 12:25:27 +02:00
parent 659d6aec30
commit 4d22d48f2e

View File

@ -589,10 +589,10 @@ begin
tbDelete.Enabled := FSelectedDbgPropertiesConfig <> nil;
if ShowWarningOverridenByProject then
lblWarningProject.Visible := (
(Project1.DebuggerBackend <> FSelectedDbgPropertiesConfig.UID) and
(Project1.DebuggerBackend <> 'IDE') and
not( (Project1.DebuggerBackend = '') and (Project1.DebuggerPropertiesConfigList.CountWithoutDeleted > 0) )
lblWarningProject.Visible := not (
(Project1.DebuggerBackend = FSelectedDbgPropertiesConfig.UID) or
(Project1.DebuggerBackend = 'IDE') or
( (Project1.DebuggerBackend = '') and (Project1.DebuggerPropertiesConfigList.CountWithoutDeleted = 0) )
);
end;