From f4c8462b97534b109ee1e5bd65559555aa1a369f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 7 Jan 2021 14:46:55 +1000 Subject: [PATCH] fix another broken setWindowFlags --- qt/aqt/mediacheck.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/qt/aqt/mediacheck.py b/qt/aqt/mediacheck.py index 5a1d7569a..092689a8d 100644 --- a/qt/aqt/mediacheck.py +++ b/qt/aqt/mediacheck.py @@ -11,7 +11,15 @@ from typing import Iterable, List, Optional, Sequence, TypeVar import aqt from anki.rsbackend import TR, Interrupted, ProgressKind, pb from aqt.qt import * -from aqt.utils import askUser, restoreGeom, saveGeom, showText, tooltip, tr +from aqt.utils import ( + askUser, + disable_help_button, + restoreGeom, + saveGeom, + showText, + tooltip, + tr, +) T = TypeVar("T") @@ -84,7 +92,7 @@ class MediaChecker: # show report and offer to delete diag = QDialog(self.mw) diag.setWindowTitle(tr(TR.MEDIA_CHECK_WINDOW_TITLE)) - setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) # type: ignore + disable_help_button(diag) layout = QVBoxLayout(diag) diag.setLayout(layout) text = QTextEdit()