fix crash when opening profile from profile manager

This commit is contained in:
Damien Elmes 2017-06-06 16:09:15 +10:00
parent 76e508e25d
commit 017984c15c

View file

@ -153,8 +153,8 @@ class AnkiQt(QMainWindow):
if not self.openProfile(): if not self.openProfile():
showWarning(_("Invalid password.")) showWarning(_("Invalid password."))
return return
self.profileDiag.close()
self.loadProfile() self.loadProfile()
self.profileDiag.close()
return True return True
def profileNameOk(self, str): def profileNameOk(self, str):