tkivy: fix password_dialog cancel - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 227f3973a631fbfa9a7332a03a1e83c616a7f62d DIR parent afa7761d7d46ce332f9ab89b48115d4c172566db HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 14 Oct 2016 14:52:24 +0200 kivy: fix password_dialog cancel Diffstat: M gui/kivy/uix/dialogs/password_dial… | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- DIR diff --git a/gui/kivy/uix/dialogs/password_dialog.py b/gui/kivy/uix/dialogs/password_dialog.py t@@ -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 = '' t@@ -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)