aboutsummaryrefslogtreecommitdiff
path: root/wizard/WizardWalletInput.qml
diff options
context:
space:
mode:
authorplowsof <plowsof@protonmail.com>2026-06-25 13:14:09 +0100
committerplowsof <plowsof@protonmail.com>2026-06-25 17:03:55 +0100
commit123433dd2caf7f5899c760e172dffb68df3375a7 (patch)
tree28a269cb1d999e21142348aa9ec036a1720fbe96 /wizard/WizardWalletInput.qml
parent0e78e60cd799aaa207125c0c51278f0d481e9dea (diff)
downloadmonzero-gui-123433dd2caf7f5899c760e172dffb68df3375a7.tar.gz
monzero-gui-123433dd2caf7f5899c760e172dffb68df3375a7.tar.xz
monzero-gui-123433dd2caf7f5899c760e172dffb68df3375a7.zip
wizard: check wallet file directory is writeable
Diffstat (limited to 'wizard/WizardWalletInput.qml')
-rw-r--r--wizard/WizardWalletInput.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/wizard/WizardWalletInput.qml b/wizard/WizardWalletInput.qml
index 882145ab..2c12d5c3 100644
--- a/wizard/WizardWalletInput.qml
+++ b/wizard/WizardWalletInput.qml
@@ -154,6 +154,10 @@ GridLayout {
errorMessageWalletLocation.text = qsTr("Wallet location is empty") + translationManager.emptyString;
return false;
}
+ if (!oshelper.isWritableDirectory(walletLocation.text)) {
+ errorMessageWalletLocation.text = qsTr("Wallet location does not exist or is not writable") + translationManager.emptyString;
+ return false;
+ }
errorMessageWalletLocation.text = "";
return true;
}