commit c9e616a0d6db12eb4f456c41aa0668dae39afe8f
parent f97fe02e3a379b3b904d598187e310ac047a0ea8
Author: ecdsa <ecdsa@github>
Date: Sun, 3 Mar 2013 19:53:35 +0100
toggle expanded with enter key
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/gui/gui_classic.py b/gui/gui_classic.py
@@ -968,6 +968,9 @@ class ElectrumWindow(QMainWindow):
item = self.receive_list.itemAt(position)
if not item: return
addr = unicode(item.text(0))
+ if not is_valid(addr):
+ item.setExpanded(not item.isExpanded())
+ return
menu = QMenu()
menu.addAction(_("Copy to clipboard"), lambda: self.app.clipboard().setText(addr))
menu.addAction(_("QR code"), lambda: ElectrumWindow.show_qrcode("bitcoin:" + addr, _("Address")) )