From 7c3d8471e58409d20ec44abd7b3d2ff086b5aad7 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 5 Jun 2014 22:02:49 +0200 Subject: [PATCH] fix: don't handle keypress if field is readonly --- gui/qt/paytoedit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/qt/paytoedit.py b/gui/qt/paytoedit.py index d18346fcd..bc7a2aaad 100644 --- 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()