From 034bc64fe6989501e2f7cd9af28364d5318d49d1 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 27 May 2013 21:14:38 +0200 Subject: [PATCH] fix indent --- gui/qrcodewidget.py | 12 ++++++------ plugins/qrscanner.py | 5 ++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/gui/qrcodewidget.py b/gui/qrcodewidget.py index 2f1052201..8aa89939c 100644 --- a/gui/qrcodewidget.py +++ b/gui/qrcodewidget.py @@ -18,12 +18,12 @@ class QRCodeWidget(QWidget): def set_addr(self, addr): if self.addr != addr: - if len(addr) < 128: - MinSize = 210 - else: - MinSize = 500 - self.setMinimumSize(MinSize, MinSize) - self.addr = addr + if len(addr) < 128: + MinSize = 210 + else: + MinSize = 500 + self.setMinimumSize(MinSize, MinSize) + self.addr = addr self.qr = None self.update() diff --git a/plugins/qrscanner.py b/plugins/qrscanner.py index d0412686d..36a849adc 100644 --- a/plugins/qrscanner.py +++ b/plugins/qrscanner.py @@ -215,9 +215,8 @@ class Plugin(BasePlugin): def sign_raw_transaction(self, tx, input_info, dialog ="", password = ""): try: self.gui.wallet.signrawtransaction(tx, input_info, [], password) - txtext = json.dumps(tx.as_dict()).replace(' ', '') - self.show_tx_qrcode(txtext, 'Signed Transaction') - + txtext = json.dumps(tx.as_dict()).replace(' ', '') + self.show_tx_qrcode(txtext, 'Signed Transaction') except BaseException, e: self.gui.show_message(str(e))