From b0a1db5af9ef00ef2976270a3740b13974e967dd Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 9 Jun 2012 23:58:20 +0200 Subject: [PATCH] convert QString to unicode --- lib/gui_qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gui_qt.py b/lib/gui_qt.py index 3abc0d218..32687012e 100644 --- a/lib/gui_qt.py +++ b/lib/gui_qt.py @@ -658,7 +658,7 @@ class ElectrumWindow(QMainWindow): #self.receive_list.selectedIndexes() item = self.contacts_list.itemAt(position) - addr = item.text(1) + addr = unicode(item.text(1)) menu = QMenu() menu.addAction(_("Copy to Clipboard"), lambda: self.app.clipboard().setText(addr)) menu.addAction(_("View QR code"),lambda: self.show_address_qrcode(addr)) @@ -698,7 +698,7 @@ class ElectrumWindow(QMainWindow): item = self.contacts_list.itemAt(position) if not item: return - addr = item.text(0) + addr = unicode(item.text(0)) menu = QMenu() menu.addAction(_("Pay to"), lambda: self.payto(addr)) menu.addAction(_("Copy to Clipboard"), lambda: self.app.clipboard().setText(addr))