treturn on cancel - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d354b601daa176927119789b223c45b79a8e9d11 DIR parent f695de9c3fa2bea0ab99e5fcffff70492d5f6efb HTML Author: thomasv <thomasv@gitorious> Date: Tue, 17 Jan 2012 11:15:17 +0100 return on cancel Diffstat: M client/gui.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- DIR diff --git a/client/gui.py b/client/gui.py t@@ -760,7 +760,12 @@ class BitcoinGUI: self.show_message( "invalid fee") return - password = password_dialog() if self.wallet.use_encryption else None + if self.wallet.use_encryption: + password = password_dialog() + if not password: + return + else: + password = None try: tx = self.wallet.mktx( to_address, amount, label, password, fee )