aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardCreateDevice1.qml
diff options
context:
space:
mode:
authormmbyday <mmbyday@protonmail.com>2019-05-14 20:21:09 -0700
committermmbyday <mmbyday@protonmail.com>2019-05-24 11:58:46 -0700
commitca9883b6c0c2dfe91f77462bc4909c5305e1126a (patch)
tree90fc97f77fed14bc1aba573628ea1ab42b4c285c /wizard/WizardCreateDevice1.qml
parentc286c7e5a8e67d769bc9054f661ab742a8b1a5ba (diff)
downloadmonzero-gui-ca9883b6c0c2dfe91f77462bc4909c5305e1126a.tar.gz
monzero-gui-ca9883b6c0c2dfe91f77462bc4909c5305e1126a.tar.xz
monzero-gui-ca9883b6c0c2dfe91f77462bc4909c5305e1126a.zip
Fix restore height when using stagenet/testnet
Diffstat (limited to 'wizard/WizardCreateDevice1.qml')
-rw-r--r--wizard/WizardCreateDevice1.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/wizard/WizardCreateDevice1.qml b/wizard/WizardCreateDevice1.qml
index 9a2191bc..21fc5a9a 100644
--- a/wizard/WizardCreateDevice1.qml
+++ b/wizard/WizardCreateDevice1.qml
@@ -33,6 +33,7 @@ import QtQuick.Controls 2.0
import moneroComponents.Wallet 1.0
import "../js/Wizard.js" as Wizard
+import "../js/Utils.js" as Utils
import "../components"
import "../components" as MoneroComponents
@@ -195,7 +196,7 @@ Rectangle {
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);
+ _restoreHeight = Wizard.getApproximateBlockchainHeight(restoreHeight.text, Utils.netTypeToString());
} else {
_restoreHeight = parseInt(restoreHeight.text)
}