fixes
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import QtQuick 2.6
|
||||
import QtQuick.Layouts 1.0
|
||||
import QtQuick.Controls 2.1
|
||||
|
||||
@@ -6,7 +7,7 @@ WizardComponent {
|
||||
|
||||
onAccept: {
|
||||
wizard_data['password'] = password1.text
|
||||
wizard_data['encrypt'] = doencrypt.checked
|
||||
wizard_data['encrypt'] = password1.text != ''
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
@@ -20,10 +21,5 @@ WizardComponent {
|
||||
id: password2
|
||||
echoMode: TextInput.Password
|
||||
}
|
||||
CheckBox {
|
||||
id: doencrypt
|
||||
enabled: password1.text !== ''
|
||||
text: qsTr('Encrypt wallet')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ class QEDaemon(QObject):
|
||||
try:
|
||||
storage = WalletStorage(self._path)
|
||||
if not storage.file_exists():
|
||||
self.walletOpenError.emit(qsTr('File not found'))
|
||||
self.walletOpenError.emit('File not found')
|
||||
return
|
||||
except StorageReadWriteError as e:
|
||||
self.walletOpenError.emit('Storage read/write error')
|
||||
|
||||
Reference in New Issue
Block a user