summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-30 10:59:12 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-03-30 10:59:12 +0200
commit2cbe642c56035106d99db0c06fcc30dce2244897 (patch)
treedf7eee74c3bf41c504edce1ccfeb7bffb85d65ef
parentc914724da943aa154e1838a339b02746305667db (diff)
downloadfpGUI-2cbe642c56035106d99db0c06fcc30dce2244897.tar.xz
Removed modal result mrError. It's not needed any more and was a bad design.
-rw-r--r--src/corelib/fpg_base.pas1
-rw-r--r--src/gui/fpg_form.pas3
2 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/fpg_base.pas b/src/corelib/fpg_base.pas
index 7c62a612..c592e6e7 100644
--- a/src/corelib/fpg_base.pas
+++ b/src/corelib/fpg_base.pas
@@ -91,7 +91,6 @@ const
{$I keys.inc}
{ TfpgModalResult values }
- mrError = -1;
mrNone = 0;
mrOk = mrNone + 1;
mrCancel = mrOk + 1;
diff --git a/src/gui/fpg_form.pas b/src/gui/fpg_form.pas
index 21f934ed..26d24f0d 100644
--- a/src/gui/fpg_form.pas
+++ b/src/gui/fpg_form.pas
@@ -308,7 +308,6 @@ begin
except
on E: Exception do
begin
- ModalResult := mrError;
Visible := False;
fpgApplication.HandleException(self);
end;
@@ -418,8 +417,6 @@ end;
procedure TfpgBaseForm.Hide;
begin
Visible := False;
- if ModalResult = mrNone then // No modal Result was set, and we need something
- ModalResult := mrError; // other than mrNone to exit modal event loop
end;
procedure TfpgBaseForm.Close;