mirror of https://gitlab.com/basile.b/dexed.git
project groups, upstream fix, selected item not highlighted after list update
This commit is contained in:
parent
f2f7661462
commit
19eed6ea36
|
@ -674,6 +674,7 @@ var
|
||||||
const
|
const
|
||||||
typeStr: array[TCEProjectFormat] of string = ('CE','DUB');
|
typeStr: array[TCEProjectFormat] of string = ('CE','DUB');
|
||||||
begin
|
begin
|
||||||
|
lstProj.BeginUpdate;
|
||||||
lstProj.Items.Clear;
|
lstProj.Items.Clear;
|
||||||
for i := 0 to projectGroup.projectCount-1 do
|
for i := 0 to projectGroup.projectCount-1 do
|
||||||
begin
|
begin
|
||||||
|
@ -693,6 +694,14 @@ begin
|
||||||
SubItems.Add(prj.fProj.configurationName(prj.fProj.getActiveConfigurationIndex));
|
SubItems.Add(prj.fProj.configurationName(prj.fProj.getActiveConfigurationIndex));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
if projectGroup.projectCount > 0 then
|
||||||
|
begin
|
||||||
|
i := projectGroup.getProjectIndex;
|
||||||
|
if i > projectGroup.projectCount then
|
||||||
|
i := projectGroup.projectCount-1;
|
||||||
|
lstProj.ItemIndex:= i;
|
||||||
|
end;
|
||||||
|
lstProj.EndUpdate;
|
||||||
if fFreeProj <> nil then
|
if fFreeProj <> nil then
|
||||||
begin
|
begin
|
||||||
if fFreeProj.filename.fileExists then
|
if fFreeProj.filename.fileExists then
|
||||||
|
|
Loading…
Reference in New Issue