From 74556b81ba43e184091b3c4b5ce474a88187c047 Mon Sep 17 00:00:00 2001 From: Abdo Date: Tue, 19 Aug 2025 15:39:36 +0300 Subject: [PATCH] Set parent of sync error dialog --- qt/aqt/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/sync.py b/qt/aqt/sync.py index 94ce0c8c1..9b29ada20 100644 --- a/qt/aqt/sync.py +++ b/qt/aqt/sync.py @@ -73,7 +73,7 @@ def handle_sync_error(mw: aqt.main.AnkiQt, err: Exception) -> None: elif isinstance(err, Interrupted): # no message to show return - show_warning(str(err)) + show_warning(str(err), parent=mw) def on_normal_sync_timer(mw: aqt.main.AnkiQt) -> None: