tdo not run asynchronous validation in GUI thread. - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit c17f64d236c07e0e390ed7e2dcd5f479569cbce3
 (DIR) parent 34d4c6c9d889a3f2f9b3aad1d018487e491ba4a5
 (HTM) Author: ThomasV <thomasv@gitorious>
       Date:   Tue, 31 Mar 2015 09:50:18 +0200
       
       do not run asynchronous validation in GUI thread.
       
       Diffstat:
         M plugins/openalias.py                |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/plugins/openalias.py b/plugins/openalias.py
       t@@ -113,8 +113,10 @@ class Plugin(BasePlugin):
                self.win.payto_e.setFrozen(True)
                if self.validate_dnssec(url):
                    self.win.payto_e.setGreen()
       +            self.validated = True
                else:
                    self.win.payto_e.setExpired()
       +            self.validated = False
        
            @hook
            def before_send(self):
       t@@ -134,7 +136,7 @@ class Plugin(BasePlugin):
                except AttributeError:
                    return False
        
       -        if not self.validate_dnssec(url):
       +        if not self.validated:
                    msgBox = QMessageBox()
                    msgBox.setText(_('WARNING: the address ' + address + ' could not be validated via an additional security check, DNSSEC, and thus may not be correct.'))
                    msgBox.setInformativeText(_('Do you wish to continue?'))