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):