electrum

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

commit e2627e094444cdd40b832648c098df5c5f55d999
parent c160a99ebcadcf95b04a59f5d43f1dc39e25d594
Author: Neil Booth <kyuupichan@gmail.com>
Date:   Sun, 17 Jan 2016 19:40:05 +0900

QMessageBox is a top-level window

Diffstat:
Mgui/qt/util.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gui/qt/util.py b/gui/qt/util.py @@ -148,9 +148,10 @@ class CancelButton(QPushButton): class MessageBoxMixin(object): def top_level_window(self, window=None): window = window or self + classes = (WindowModalDialog, QMessageBox) for n, child in enumerate(window.children()): # Test for visibility as old closed dialogs may not be GC-ed - if isinstance(child, WindowModalDialog) and child.isVisible(): + if isinstance(child, classes) and child.isVisible(): return self.top_level_window(child) return window