commit 87d4b132a454dac6a6ac38fb97e56b920b263f5c
parent 1f97dbc96e4b14a54f981e36a60de658ff18392f
Author: ThomasV <thomasv@gitorious>
Date: Sun, 10 Jun 2012 21:33:56 +0200
fix: test item existence
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/gui_qt.py b/lib/gui_qt.py
@@ -679,6 +679,7 @@ class ElectrumWindow(QMainWindow):
#self.receive_list.selectedIndexes()
item = self.receive_list.itemAt(position)
+ if not item: return
addr = unicode(item.text(1))
menu = QMenu()
menu.addAction(_("Copy to Clipboard"), lambda: self.app.clipboard().setText(addr))