commit 63b9911a9f59adc5a2ea72714c453db46b5898de
parent 8b5f5fc89b1aac3c6e035a435996dbeb862e7d80
Author: ThomasV <thomasv@gitorious>
Date: Sat, 16 Nov 2013 10:44:11 +0100
fix self.amount in POS plugin
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/plugins/pointofsale.py b/plugins/pointofsale.py
@@ -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