URI: 
       tfix syntax error in lite gui and get_default_label - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 80e97feb472f54d7aa027e24d03eb6fcb0b4ea9e
   DIR parent 73dc533e79b5db7558c13811e45863dd20a1bbe6
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Mon,  5 Nov 2012 10:42:57 +0100
       
       fix syntax error in lite gui and get_default_label
       
       Diffstat:
         M lib/gui_lite.py                     |       7 ++++---
         M lib/gui_qt.py                       |       2 +-
       
       2 files changed, 5 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py
       t@@ -439,9 +439,10 @@ class MiniWindow(QDialog):
        
            def update_history(self, tx_history):
                for tx in tx_history[-10:]:
       -            address = tx["default_label"]
       -            value = self.actuator.wallet.get_tx_value(tx['tx_hash'])
       -            amount = D(value / 10**8
       +            tx_hash = tx['tx_hash']
       +            address = self.actuator.wallet.get_default_label(tx_hash)
       +            value = self.actuator.wallet.get_tx_value(tx_hash)
       +            amount = D(value / 10**8)
                    self.history_list.append(address, amount)
        
            def acceptbit(self):
   DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py
       t@@ -380,7 +380,7 @@ class ElectrumWindow(QMainWindow):
                    item.setForeground(2, QBrush(QColor('black')))
                else:
                    if s: self.wallet.labels.pop(tx_hash)
       -            text = tx['default_label']
       +            text = self.wallet.get_default_label(tx_hash)
                    item.setText(2, text)
                    item.setForeground(2, QBrush(QColor('gray')))
                self.is_edit=False