URI: 
       tfix: don't handle keypress if field is readonly - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 7c3d8471e58409d20ec44abd7b3d2ff086b5aad7
   DIR parent e699ab6660ba91ccf194bed9d9aa4aa1ed913fb8
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Thu,  5 Jun 2014 22:02:49 +0200
       
       fix: don't handle keypress if field is readonly
       
       Diffstat:
         M gui/qt/paytoedit.py                 |       3 +++
       
       1 file changed, 3 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/gui/qt/paytoedit.py b/gui/qt/paytoedit.py
       t@@ -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()