tEncrypt / decrypt: use top level window - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 56bc717da1fb423b63bea716c097a9f7c8632431 DIR parent b97c2857e05d8790ec04a46846bb07a989406c9b HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Sun, 10 Jan 2016 12:42:47 +0900 Encrypt / decrypt: use top level window Show errors on top level window, otherwise MacOSX gets stuck. Diffstat: M gui/qt/main_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -2137,7 +2137,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): message_e.setText(decrypted) except BaseException as e: traceback.print_exc(file=sys.stdout) - self.show_warning(str(e)) + self.top_level_window().show_warning(str(e)) def do_encrypt(self, message_e, pubkey_e, encrypted_e): t@@ -2148,7 +2148,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): encrypted_e.setText(encrypted) except BaseException as e: traceback.print_exc(file=sys.stdout) - self.show_warning(str(e)) + self.top_level_window().show_warning(str(e)) def encrypt_message(self, address = ''):