ide: fixed cancel project options resetting Subtarget

This commit is contained in:
mattias 2024-08-25 12:36:18 +02:00
parent 5f8eab811a
commit ce77f4dfae
4 changed files with 3 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -323,12 +323,14 @@ begin
end;
end;
end;
//debugln(['TCompilerConfigTargetFrame.FillSubTargetComboBox UseSubTarget="',UseSubTarget,'" Candidates=[',sl.Text,']']);
with SubtargetComboBox do begin
Items.BeginUpdate;
Items.Assign(sl);
SetComboBoxText(SubtargetComboBox,UseSubTarget,cstCaseInsensitive);
Items.EndUpdate;
end;
//debugln(['TCompilerConfigTargetFrame.FillSubTargetComboBox SubtargetComboBox: Text="',SubtargetComboBox.Text,'" Index=',SubtargetComboBox.ItemIndex,' Items=[',SubtargetComboBox.Items.Text,']']);
finally
sl.Free;
end;

View File

@ -2951,6 +2951,7 @@ begin
fTargetOS := CompOpts.fTargetOS;
fTargetCPU := CompOpts.fTargetCPU;
fTargetProc := CompOpts.fTargetProc;
FSubtarget := CompOpts.FSubtarget;
fOptLevel := CompOpts.fOptLevel;
fVarsInReg := CompOpts.fVarsInReg;
fUncertainOpt := CompOpts.fUncertainOpt;