electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 7c3d8471e58409d20ec44abd7b3d2ff086b5aad7
parent e699ab6660ba91ccf194bed9d9aa4aa1ed913fb8
Author: ThomasV <thomasv@gitorious>
Date:   Thu,  5 Jun 2014 22:02:49 +0200

fix: don't handle keypress if field is readonly

Diffstat:
Mgui/qt/paytoedit.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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()