mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 17:59:59 +02:00
IDE: compiler options dlg: move build mode up/down
git-svn-id: trunk@18279 -
This commit is contained in:
parent
bed259ea54
commit
ecf54e3f86
@ -120,7 +120,7 @@ var
|
||||
begin
|
||||
if not GetSelectedBuildMode(BuildMode) then exit;
|
||||
i:=ModesGrid.Row;
|
||||
if i<ModesGrid.Row-1 then begin
|
||||
if (i<ModesGrid.RowCount-1) and (i<BuildModes.Count-1) then begin
|
||||
BuildModes.Move(i,i+1);
|
||||
ModesGrid.Cells[0,i]:=BuildModes.Items[i].Identifier;
|
||||
ModesGrid.Cells[0,i+1]:=BuildModes.Items[i+1].Identifier;
|
||||
@ -135,7 +135,7 @@ var
|
||||
begin
|
||||
if not GetSelectedBuildMode(BuildMode) then exit;
|
||||
i:=ModesGrid.Row;
|
||||
if i>0 then begin
|
||||
if (i>0) and (i<ModesGrid.RowCount) and (i<BuildModes.Count) then begin
|
||||
BuildModes.Move(i,i-1);
|
||||
ModesGrid.Cells[0,i]:=BuildModes.Items[i].Identifier;
|
||||
ModesGrid.Cells[0,i-1]:=BuildModes.Items[i-1].Identifier;
|
||||
|
Loading…
Reference in New Issue
Block a user