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: