Changeset 183 for trunk/Forms/UFormNew.pas
- Timestamp:
- Feb 9, 2018, 10:33:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormNew.pas
r179 r183 319 319 procedure TFormNew.APlayerModifyExecute(Sender: TObject); 320 320 begin 321 if Assigned(ListViewPlayers.Selected) then begin 322 FormPlayer.Load(TPlayer(ListViewPlayers.Selected.Data)); 323 if FormPlayer.ShowModal = mrOk then begin 324 FormPlayer.Save(TPlayer(ListViewPlayers.Selected.Data)); 325 ReloadView; 321 FormPlayer := TFormPlayer.Create(nil); 322 try 323 if Assigned(ListViewPlayers.Selected) then begin 324 FormPlayer.Load(TPlayer(ListViewPlayers.Selected.Data)); 325 if FormPlayer.ShowModal = mrOk then begin 326 FormPlayer.Save(TPlayer(ListViewPlayers.Selected.Data)); 327 ReloadView; 328 end; 326 329 end; 330 finally 331 FormPlayer.Free; 327 332 end; 328 333 end;
Note:
See TracChangeset
for help on using the changeset viewer.