URI: 
       tset label before showing tx window - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 0d4d06c58b86a70354f50b58e8a42507d417e28f
   DIR parent 2753a0bbea88bfbc5338ad27b1804ad69d1550bd
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Wed, 22 Apr 2015 12:10:58 +0200
       
       set label before showing tx window
       
       Diffstat:
         M gui/qt/main_window.py               |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -1128,12 +1128,12 @@ class ElectrumWindow(QMainWindow):
                    return tx
        
                def sign_done(tx):
       +            if label and tx.is_complete():
       +                self.wallet.set_label(tx.hash(), label)
                    if not tx.is_complete() or self.config.get('show_before_broadcast'):
                        self.show_transaction(tx)
                        self.do_clear()
                        return
       -            if label:
       -                self.wallet.set_label(tx.hash(), label)
                    self.broadcast_transaction(tx)
        
                # keep a reference to WaitingDialog or the gui might crash