commit d354b601daa176927119789b223c45b79a8e9d11 parent f695de9c3fa2bea0ab99e5fcffff70492d5f6efb 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(-)
diff --git a/client/gui.py b/client/gui.py @@ -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 )