From b5fac33cc4376bebd4c3e6e3cc6c0049563d5aca Mon Sep 17 00:00:00 2001 From: Dmitry Mikheev Date: Thu, 27 Apr 2017 01:25:16 +0500 Subject: [PATCH] Otherwise showText never saves Geometry --- aqt/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aqt/utils.py b/aqt/utils.py index 96b1ede4a..24127e710 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -71,6 +71,10 @@ def showText(txt, parent=None, type="text", run=True, geomKey=None, \ saveGeom(diag, geomKey) QDialog.reject(diag) box.rejected.connect(onReject) + def onFinish(): + if geomKey: + saveGeom(diag, geomKey) + box.finished.connect(onFinish) diag.setMinimumHeight(minHeight) diag.setMinimumWidth(minWidth) if geomKey: