URI: 
       tminor fixes to point of sale plugin - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit e9ddba5c3f1fba8d65426b17c0bbd591ec93efc6
   DIR parent 8c2ca744d926a54d430268ade57ca54a42492592
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Wed, 19 Jun 2013 14:31:59 +0200
       
       minor fixes to point of sale plugin
       
       Diffstat:
         M plugins/pointofsale.py              |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/plugins/pointofsale.py b/plugins/pointofsale.py
       t@@ -177,15 +177,15 @@ class Plugin(BasePlugin):
                text = str( item.text(column) )
                try:
                    seq = self.gui.wallet.get_address_index(address)
       -            index = seq[-1]
       +            index = seq[1][1]
                except:
                    print "cannot get index"
                    return
        
                text = text.strip().upper()
                print text
       -        m = re.match('^(\d+(|\.\d*))\s*(|BTC|EUR|USD|GBP|CNY|JPY|RUB|BRL)$', text)
       -        if m:
       +        m = re.match('^(\d*(|\.\d*))\s*(|BTC|EUR|USD|GBP|CNY|JPY|RUB|BRL)$', text)
       +        if m and m.group(1) and m.group(1)!='.':
                    amount = m.group(1)
                    currency = m.group(3)
                    if not currency:
       t@@ -199,7 +199,7 @@ class Plugin(BasePlugin):
                    label = self.gui.wallet.labels.get(address)
                    if label is None:
                        label = self.merchant_name + ' - %04d'%(index+1)
       -                self.wallet.labels[address] = label
       +                self.gui.wallet.labels[address] = label
        
                    if self.qr_window:
                        self.qr_window.set_content( address, label, amount, currency )