From 255ac3679b2b8957e73ab5c939cbcf18aeb2b053 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 29 May 2020 08:43:33 +1000 Subject: [PATCH] add maximize button to HTML editor closes ankitects/help-wanted#1 --- qt/aqt/editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 618140a42..56416e279 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -522,7 +522,7 @@ class Editor: self.saveNow(lambda: self._onHtmlEdit(field)) def _onHtmlEdit(self, field): - d = QDialog(self.widget) + d = QDialog(self.widget, Qt.Window) form = aqt.forms.edithtml.Ui_Dialog() form.setupUi(d) restoreGeom(d, "htmlEditor")