tfix: set_paid - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit 2753a0bbea88bfbc5338ad27b1804ad69d1550bd
 (DIR) parent e878d793733beb2b4f8082aebbd3f87792f8b1c4
 (HTM) Author: ThomasV <thomasv@gitorious>
       Date:   Wed, 22 Apr 2015 11:59:15 +0200
       
       fix: set_paid
       
       Diffstat:
         M gui/qt/main_window.py               |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -1147,6 +1147,7 @@ class ElectrumWindow(QMainWindow):
                def broadcast_thread():
                    # non-GUI thread
                    pr = self.payment_request
       +            key = pr.get_id()
                    if pr is None:
                        return self.wallet.sendtx(tx)
                    if pr.has_expired():
       t@@ -1155,7 +1156,7 @@ class ElectrumWindow(QMainWindow):
                    status, msg =  self.wallet.sendtx(tx)
                    if not status:
                        return False, msg
       -            pr.set_paid(tx.hash())
       +            self.invoices.set_paid(key, tx.hash())
                    self.payment_request = None
                    refund_address = self.wallet.addresses()[0]
                    ack_status, ack_msg = pr.send_ack(str(tx), refund_address)