Ignore:
Timestamp:
Jun 6, 2018, 12:23:25 AM (6 years ago)
Author:
chronos
Message:
  • Modified: Allow multiselect and removal of players in new game dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r207 r218  
    410410
    411411procedure TFormNew.APlayerRemoveExecute(Sender: TObject);
    412 begin
    413   if Assigned(ListViewPlayers.Selected) then begin
    414     Players.Remove(ListViewPlayers.Selected.Data);
    415     ReloadView;
    416   end;
     412var
     413  I: Integer;
     414begin
     415  for I := ListViewPlayers.Items.Count - 1 downto 0 do
     416  if ListViewPlayers.Items[I].Selected then begin
     417    Players.Remove(ListViewPlayers.Items[I].Data);
     418  end;
     419  ReloadView;
    417420end;
    418421
Note: See TracChangeset for help on using the changeset viewer.