electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 227f3973a631fbfa9a7332a03a1e83c616a7f62d
parent afa7761d7d46ce332f9ab89b48115d4c172566db
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 14 Oct 2016 14:52:24 +0200

kivy: fix password_dialog cancel

Diffstat:
Mgui/kivy/uix/dialogs/password_dialog.py | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/gui/kivy/uix/dialogs/password_dialog.py b/gui/kivy/uix/dialogs/password_dialog.py @@ -79,7 +79,6 @@ class PasswordDialog(Factory.Popup): # Factory.Popup.__init__(self) def init(self, message, callback): - self.pw = None self.message = message self.callback = callback self.ids.kb.password = '' @@ -97,8 +96,5 @@ class PasswordDialog(Factory.Popup): def on_password(self, pw): if len(pw) == 6: - self.pw = pw self.dismiss() - - def on_dismiss(self): - Clock.schedule_once(lambda dt: self.callback(self.pw), 0.1) + Clock.schedule_once(lambda dt: self.callback(pw), 0.1)