git://git.novaco.in
/
electrum-nvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix: don't handle keypress if field is readonly
[electrum-nvc.git]
/
gui
/
qt
/
paytoedit.py
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()