fix
authorThomasV <thomasv@gitorious>
Fri, 30 Nov 2012 05:14:20 +0000 (06:14 +0100)
committerThomasV <thomasv@gitorious>
Fri, 30 Nov 2012 05:14:20 +0000 (06:14 +0100)
lib/gui_qt.py

index 243e677..6286624 100644 (file)
@@ -150,7 +150,7 @@ class QRCodeWidget(QWidget):
             self.update()
 
     def update_qr(self):
-        if not self.qr:
+        if self.addr and not self.qr:
             self.qr = pyqrnative.QRCode(4, pyqrnative.QRErrorCorrectLevel.L)
             self.qr.addData(self.addr)
             self.qr.make()