fix restoreHeightEdit is not defined.

This commit is contained in:
widdy 2018-05-22 18:22:29 +08:00 committed by GitHub
parent 9272767e4e
commit f4e58f1aad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -686,7 +686,7 @@ Rectangle {
if(Utils.isNumeric(_restoreHeight)){ if(Utils.isNumeric(_restoreHeight)){
_restoreHeight = parseInt(_restoreHeight); _restoreHeight = parseInt(_restoreHeight);
if(_restoreHeight >= 0) { if(_restoreHeight >= 0) {
currentWallet.walletCreationHeight = restoreHeightEdit.text currentWallet.walletCreationHeight = _restoreHeight
// Restore height is saved in .keys file. Set password to trigger rewrite. // Restore height is saved in .keys file. Set password to trigger rewrite.
currentWallet.setPassword(appWindow.walletPassword) currentWallet.setPassword(appWindow.walletPassword)