summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-02-21 16:09:55 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-02-21 16:09:55 +0200
commit474d5e2fe37db7f2dbf492d551dc7dc84ffe68bb (patch)
tree515a6be6ff10ea045967d1d0cdc7b33892a1d1b3 /src/gui
parent6b988f73cace8232ec5e857fa7977d0bde9454bb (diff)
downloadfpGUI-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.pas3
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);