From 22ecab1a0e1653bb350c8a497a2299eb0aaace01 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 30 Apr 2024 23:21:41 +1000 Subject: [PATCH] Ensure DB check tooltip appears in main window https://forums.ankiweb.net/t/is-this-bug-or-the-new-modification-in-anki-desktop/44072 --- qt/aqt/dbcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/dbcheck.py b/qt/aqt/dbcheck.py index 775abbece..be00f52b3 100644 --- a/qt/aqt/dbcheck.py +++ b/qt/aqt/dbcheck.py @@ -41,9 +41,9 @@ def check_db(mw: aqt.AnkiQt) -> None: ret, ok = fut.result() if not ok: - showText(ret) + showText(ret, parent=mw) else: - tooltip(ret) + tooltip(ret, parent=mw) # if an error has directed the user to check the database, # silently clean up any broken reset hooks which distract from