commit 98cdbe37714b23b2826b18276a789cf98ca98510
parent 5893af5025a66121f95f9492f70c16cdf00b565b
Author: SomberNight <somber.night@protonmail.com>
Date: Mon, 26 Feb 2018 22:03:22 +0100
fix #3956
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gui/qt/util.py b/gui/qt/util.py
@@ -218,13 +218,14 @@ class WindowModalDialog(QDialog, MessageBoxMixin):
class WaitingDialog(WindowModalDialog):
- '''Shows a please wait dialog whilst runnning a task. It is not
+ '''Shows a please wait dialog whilst running a task. It is not
necessary to maintain a reference to this dialog.'''
def __init__(self, parent, message, task, on_success=None, on_error=None):
assert parent
if isinstance(parent, MessageBoxMixin):
parent = parent.top_level_window()
WindowModalDialog.__init__(self, parent, _("Please wait"))
+ self.setAttribute(Qt.WA_DeleteOnClose) # see #3956
vbox = QVBoxLayout(self)
vbox.addWidget(QLabel(message))
self.accepted.connect(self.on_accepted)