diff options
Diffstat (limited to 'wizard/WizardCreateDevice1.qml')
| -rw-r--r-- | wizard/WizardCreateDevice1.qml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml index 97623283..1dc877e4 100644 --- a/wizard/WizardCreateDevice1.qml +++ b/wizard/WizardCreateDevice1.qml @@ -183,15 +183,8 @@ Rectangle { wizardController.walletOptionsDeviceName = wizardCreateDevice1.deviceName; if(lookahead.text) wizardController.walletOptionsSubaddressLookahead = lookahead.text; - var _restoreHeight = 0; if(restoreHeight.text){ - // Parse date string or restore height as integer - if(restoreHeight.text.indexOf('-') === 4 && restoreHeight.text.length === 10){ - _restoreHeight = Wizard.getApproximateBlockchainHeight(restoreHeight.text, Utils.netTypeToString()); - } else { - _restoreHeight = parseInt(restoreHeight.text) - } - wizardController.walletOptionsRestoreHeight = _restoreHeight; + wizardController.walletOptionsRestoreHeight = Utils.parseDateStringOrRestoreHeightAsInteger(restoreHeight.text); } wizardController.walletCreatedFromDevice.connect(onCreateWalletFromDeviceCompleted); |
