From e86817305a7314170b05ac8e8c8e2b7498a003e8 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Sun, 26 Apr 2020 02:19:13 +0200 Subject: [PATCH] mw.debug_diag is the dialog and not the window This will allow, for example, for add-ons to do self.debugDiag.text and access the debugger text. I see very little reason to have a direct access to the dialog window. I should note that self.debugDiag is never used anywhere in the code, so I think it should be deleted; unless you've heard of some add-on using it. --- qt/aqt/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 25ba3311b..c46640249 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -1369,7 +1369,7 @@ will be lost. Continue?""" def onDebug(self): d = self.debugDiag = QDialog() d.silentlyClose = True - frm = aqt.forms.debug.Ui_Dialog() + frm = self.debug_diag_form = aqt.forms.debug.Ui_Dialog() frm.setupUi(d) font = QFontDatabase.systemFont(QFontDatabase.FixedFont) font.setPointSize(frm.text.font().pointSize() + 1)