From af269224937c65c26e6a429f3a439b449bc355b3 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 10 Feb 2020 09:32:56 +1000 Subject: [PATCH] fix error when double-clicking open profile button https://anki.tenderapp.com/discussions/ankidesktop/38670-bug-when-auto-sync-is-enabled-and-open-profile-button-is-double-clicked --- qt/aqt/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 1b7acff8b..1cc8be70b 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -239,6 +239,9 @@ class AnkiQt(QMainWindow): return self.pm.load(name) def onOpenProfile(self) -> None: + self.profileDiag.hide() + # code flow is confusing here - if load fails, profile dialog + # will be shown again self.loadProfile(self.profileDiag.closeWithoutQuitting) def profileNameOk(self, str):