git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e699ab6
)
fix: don't handle keypress if field is readonly
author
ThomasV
<thomasv@gitorious>
Thu, 5 Jun 2014 20:02:49 +0000 (22:02 +0200)
committer
ThomasV
<thomasv@gitorious>
Thu, 5 Jun 2014 20:02:49 +0000 (22:02 +0200)
gui/qt/paytoedit.py
patch
|
blob
|
history
diff --git
a/gui/qt/paytoedit.py
b/gui/qt/paytoedit.py
index
d18346f
..
bc7a2aa
100644
(file)
--- a/
gui/qt/paytoedit.py
+++ b/
gui/qt/paytoedit.py
@@
-175,6
+175,9
@@
class PayToEdit(QTextEdit):
def keyPressEvent(self, e):
+ if self.isReadOnly():
+ return
+
if self.c.popup().isVisible():
if e.key() in [Qt.Key_Enter, Qt.Key_Return]:
e.ignore()