URI: 
       tcount all transactions in num_tx, in order to show the correct gap - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 11fd811b331a4dd261fc1fe34d45bc7fe5fa0550
   DIR parent ad6cc6e64bcc6e5a0f030f550fedf45d86383c59
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Mon, 28 Jan 2013 13:59:23 +0100
       
       count all transactions in num_tx, in order to show the correct gap
       
       Diffstat:
         M lib/gui_qt.py                       |      15 +++------------
       
       1 file changed, 3 insertions(+), 12 deletions(-)
       ---
   DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py
       t@@ -1181,19 +1181,9 @@ class ElectrumWindow(QMainWindow):
                    if self.wallet.is_change(address) and self.receive_tab_mode != 1:
                        continue
        
       -            n = 0 
                    h = self.wallet.history.get(address,[])
       -
       -            if h != ['*']: 
       -                for tx_hash, tx_height in h:
       -                    tx = self.wallet.transactions.get(tx_hash)
       -                    if tx: n += 1
       -                num_tx = "%d "%n
       -            else:
       -                n = -1
       -                num_tx = "*"
       -
       -            if n==0:
       +            
       +            if h == []:
                        if address in self.wallet.addresses:
                            gap += 1
                            if gap > self.wallet.gap_limit:
       t@@ -1202,6 +1192,7 @@ class ElectrumWindow(QMainWindow):
                        if address in self.wallet.addresses:
                            gap = 0
        
       +            num_tx = '*' if h == ['*'] else "%d"%len(h)
                    item = QTreeWidgetItem( [ '', address, '', '', '', num_tx] )
                    item.setFont(0, QFont(MONOSPACE_FONT))
                    item.setFont(1, QFont(MONOSPACE_FONT))