URI: 
       tsimplify if statement - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 9bd75e05e7f44187caee02f179ec30d9f8ec02ae
   DIR parent 11fd811b331a4dd261fc1fe34d45bc7fe5fa0550
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Mon, 28 Jan 2013 14:01:25 +0100
       
       simplify if statement
       
       Diffstat:
         M lib/gui_qt.py                       |       7 +++----
       
       1 file changed, 3 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py
       t@@ -1183,13 +1183,12 @@ class ElectrumWindow(QMainWindow):
        
                    h = self.wallet.history.get(address,[])
                    
       -            if h == []:
       -                if address in self.wallet.addresses:
       +            if address in self.wallet.addresses:
       +                if h == []:
                            gap += 1
                            if gap > self.wallet.gap_limit:
                                is_red = True
       -            else:
       -                if address in self.wallet.addresses:
       +                else:
                            gap = 0
        
                    num_tx = '*' if h == ['*'] else "%d"%len(h)