1
0

qml: handle no wallet password for authed info

This commit is contained in:
Sander van Grieken
2023-09-15 11:42:49 +02:00
parent 1e96bbc1e8
commit 24f27618e2

View File

@@ -668,6 +668,8 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
@pyqtSlot(str, result=bool)
def verifyPassword(self, password):
if not self.wallet.has_password():
return not bool(password)
try:
self.wallet.check_password(password)
return True