mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 04:19:19 +02:00
ide: fixed using default subtarget by default
This commit is contained in:
parent
cab19ae8cb
commit
bcbae4f21b
@ -272,6 +272,8 @@ begin
|
||||
sl:=TStringListUTF8Fast.Create;
|
||||
try
|
||||
sl.Assign(InputHistories.HistoryLists.GetList('Subtarget',true,rltCaseInsensitive));
|
||||
if sl.IndexOf('')<0 then
|
||||
sl.Add(''); // always have the default target
|
||||
|
||||
// search for possible subtargets
|
||||
// fpc searches subtarget configs in the same directories it searches for normal configs
|
||||
@ -320,7 +322,7 @@ begin
|
||||
with SubtargetComboBox do begin
|
||||
Items.BeginUpdate;
|
||||
Items.Assign(sl);
|
||||
SetComboBoxText(SubtargetComboBox,Subtarget,cstCaseInsensitive);
|
||||
SetComboBoxText(SubtargetComboBox,'',cstCaseInsensitive);
|
||||
Items.EndUpdate;
|
||||
end;
|
||||
finally
|
||||
|
Loading…
Reference in New Issue
Block a user