wizard: warn user if wallet exists in path

This commit is contained in:
Jacob Brydolf
2016-10-30 18:07:56 +01:00
parent e09ccd3c9a
commit d637b5883e
3 changed files with 33 additions and 13 deletions

View File

@@ -54,7 +54,8 @@ Item {
settingsObject['account_name'] = uiItem.accountNameText
settingsObject['words'] = uiItem.wordsTexttext
settingsObject['wallet_path'] = uiItem.walletPath
return true;
var walletFullPath = wizard.createWalletPath(uiItem.walletPath,uiItem.accountNameText);
return !wizard.walletExists(walletFullPath);
}
function checkNextButton() {
@@ -86,9 +87,6 @@ Item {
settingsObject.wallet_filename = wallet_filename
}
WizardManageWalletUI {
id: uiItem
titleText: qsTr("A new wallet has been created for you") + translationManager.emptyString