From 017984c15cba569efd94923abcb58e50a5294f2c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 6 Jun 2017 16:09:15 +1000 Subject: [PATCH] fix crash when opening profile from profile manager --- aqt/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/main.py b/aqt/main.py index 99c61ac8f..06e2cf925 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -153,8 +153,8 @@ class AnkiQt(QMainWindow): if not self.openProfile(): showWarning(_("Invalid password.")) return - self.profileDiag.close() self.loadProfile() + self.profileDiag.close() return True def profileNameOk(self, str):