fix self.amount in POS plugin
authorThomasV <thomasv@gitorious>
Sat, 16 Nov 2013 09:44:11 +0000 (10:44 +0100)
committerThomasV <thomasv@gitorious>
Sat, 16 Nov 2013 09:44:11 +0000 (10:44 +0100)
plugins/pointofsale.py

index 8bf1cdf..6e66142 100644 (file)
@@ -73,6 +73,9 @@ class QR_Window(QWidget):
             if currency:
                 amount_text += "<span style='font-size: 18pt'>%s %s</span><br/>" % (amount, currency)
             amount_text += "<span style='font-size: 21pt'>%s</span> <span style='font-size: 16pt'>BTC</span> " % str(self.amount) 
+        else:
+            self.amount = None
+            
         self.amount_label.setText(amount_text)
 
         self.label = label