From a03bacbeff25c43e4294ab3427148c779020bbfa Mon Sep 17 00:00:00 2001 From: thomasv Date: Wed, 28 Nov 2012 17:50:45 +0100 Subject: [PATCH] fix url in qr code --- lib/gui_qt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/gui_qt.py b/lib/gui_qt.py index 63c3aa99..4fbca139 100644 --- a/lib/gui_qt.py +++ b/lib/gui_qt.py @@ -227,8 +227,10 @@ class QR_Window(QWidget): msg = 'bitcoin:'+self.address if self.amount is not None: msg += '?amount=%s'%(str( Decimal(self.amount) /100000000)) - if self.label is not None: - msg += '&label=%s'%(self.label) + if self.label is not None: + msg += '&label=%s'%(self.label) + elif self.label is not None: + msg += '?label=%s'%(self.label) self.qrw.set_addr( msg ) self.qrw.repaint()