|
@@ -32,6 +32,7 @@ type
|
|
FChangeKeyGrid: TVisualGrid;
|
|
FChangeKeyGrid: TVisualGrid;
|
|
public
|
|
public
|
|
procedure OnPresent; override;
|
|
procedure OnPresent; override;
|
|
|
|
+ procedure OnNext; override;
|
|
function Validate(out message: ansistring): boolean; override;
|
|
function Validate(out message: ansistring): boolean; override;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -40,7 +41,7 @@ implementation
|
|
|
|
|
|
{$R *.lfm}
|
|
{$R *.lfm}
|
|
|
|
|
|
-uses UAccounts, UCrypto, UDataSources, UCommon, UCommon.UI, Generics.Collections;
|
|
|
|
|
|
+uses UAccounts, UWallet, UUserInterface, UCrypto, UDataSources, UCommon, UCommon.UI, Generics.Collections;
|
|
|
|
|
|
type
|
|
type
|
|
|
|
|
|
@@ -107,6 +108,17 @@ begin
|
|
lblSgnAcc.Caption := TAccountComp.AccountNumberToAccountTxtNumber(Model.Signer.SignerAccount.account);
|
|
lblSgnAcc.Caption := TAccountComp.AccountNumberToAccountTxtNumber(Model.Signer.SignerAccount.account);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+procedure TWIZChangeKey_Confirmation.OnNext;
|
|
|
|
+var
|
|
|
|
+ locked: Boolean;
|
|
|
|
+begin
|
|
|
|
+ locked := (NOT TWallet.Keys.HasPassword) OR (NOT TWallet.Keys.IsValidPassword);
|
|
|
|
+ if locked then
|
|
|
|
+ begin
|
|
|
|
+ TUserInterface.UnlockWallet(Self);
|
|
|
|
+ end;
|
|
|
|
+end;
|
|
|
|
+
|
|
function TWIZChangeKey_Confirmation.Validate(out message: ansistring): boolean;
|
|
function TWIZChangeKey_Confirmation.Validate(out message: ansistring): boolean;
|
|
begin
|
|
begin
|
|
Result := True;
|
|
Result := True;
|