|
@@ -53,7 +53,10 @@ void __fastcall TAuthenticateForm::Init(TTerminal * Terminal)
|
|
|
//---------------------------------------------------------------------------
|
|
|
__fastcall TAuthenticateForm::~TAuthenticateForm()
|
|
|
{
|
|
|
- ReleaseAsModal(this, FShowAsModalStorage);
|
|
|
+ if (ReleaseAsModal(this, FShowAsModalStorage))
|
|
|
+ {
|
|
|
+ UnhookFormActivation(this);
|
|
|
+ }
|
|
|
}
|
|
|
//---------------------------------------------------------------------------
|
|
|
void __fastcall TAuthenticateForm::ShowAsModal()
|
|
@@ -68,13 +71,6 @@ void __fastcall TAuthenticateForm::ShowAsModal()
|
|
|
HookFormActivation(this);
|
|
|
}
|
|
|
//---------------------------------------------------------------------------
|
|
|
-void __fastcall TAuthenticateForm::HideAsModal()
|
|
|
-{
|
|
|
- ::HideAsModal(this, FShowAsModalStorage);
|
|
|
-
|
|
|
- UnhookFormActivation(this);
|
|
|
-}
|
|
|
-//---------------------------------------------------------------------------
|
|
|
void __fastcall TAuthenticateForm::CMShowingChanged(TMessage & Message)
|
|
|
{
|
|
|
if (Showing && FShowNoActivate)
|