From 3d243009634d246d270bac0dae6cb56007854fd5 Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 27 Apr 2020 13:13:38 +0000 Subject: [PATCH] SettingsNode: forbid 'data-dir', 'bootstrap-daemon-address' flags --- pages/settings/SettingsNode.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/settings/SettingsNode.qml b/pages/settings/SettingsNode.qml index 9c6714f6..507dac87 100644 --- a/pages/settings/SettingsNode.qml +++ b/pages/settings/SettingsNode.qml @@ -412,7 +412,12 @@ Rectangle{ placeholderFontSize: 15 text: persistentSettings.daemonFlags addressValidation: false - onEditingFinished: persistentSettings.daemonFlags = daemonFlags.text; + error: text.match(/(^|\s)--(data-dir|bootstrap-daemon-address)/) + onEditingFinished: { + if (!daemonFlags.error) { + persistentSettings.daemonFlags = daemonFlags.text; + } + } } RowLayout {