From b64fef53dcd2f91e8572f047da2ad93cd736c866 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 13 Nov 2014 12:36:37 +0100 Subject: [PATCH] change semantics of before_send hook --- gui/qt/main_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 2dc45b25c..a261e6dba 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1082,11 +1082,12 @@ class ElectrumWindow(QMainWindow): def do_send(self): + if not run_hook('before_send'): + return r = self.read_send_tab() if not r: return outputs, fee, label, coins = r - run_hook('before_send') try: tx = self.wallet.make_unsigned_transaction(outputs, fee, None, coins = coins) if not tx: