diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-02-21 16:09:55 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-02-21 16:09:55 +0200 |
commit | 474d5e2fe37db7f2dbf492d551dc7dc84ffe68bb (patch) | |
tree | 515a6be6ff10ea045967d1d0cdc7b33892a1d1b3 /src/gui | |
parent | 6b988f73cace8232ec5e857fa7977d0bde9454bb (diff) | |
download | fpGUI-474d5e2fe37db7f2dbf492d551dc7dc84ffe68bb.tar.xz |
fpg_edit: use the existing DoOnChange method instead. Consistency is key. :)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/fpg_edit.pas | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/fpg_edit.pas b/src/gui/fpg_edit.pas index 60632215..0bad7ee1 100644 --- a/src/gui/fpg_edit.pas +++ b/src/gui/fpg_edit.pas @@ -905,8 +905,7 @@ begin inherited HandleKeyPress(keycode, shiftstate, consumed); if hasChanged then - if Assigned(FOnChange) then - FOnChange(self); + DoOnChange; end; procedure TfpgBaseEdit.HandleLMouseDown(x, y: integer; shiftstate: TShiftState); |