Merge pull request #398 from Jedi18/master

Fix assert failure due to calling versionOk on a different thread
This commit is contained in:
DeepBlueV7.X 2021-01-22 17:06:31 +01:00 committed by GitHub
commit 4f80fbea97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -174,8 +174,9 @@ LoginPage::LoginPage(QWidget *parent)
setLayout(top_layout_);
connect(this, &LoginPage::versionOkCb, this, &LoginPage::versionOk);
connect(this, &LoginPage::versionErrorCb, this, &LoginPage::versionError);
connect(this, &LoginPage::versionOkCb, this, &LoginPage::versionOk, Qt::QueuedConnection);
connect(
this, &LoginPage::versionErrorCb, this, &LoginPage::versionError, Qt::QueuedConnection);
connect(back_button_, SIGNAL(clicked()), this, SLOT(onBackButtonClicked()));
connect(login_button_, SIGNAL(clicked()), this, SLOT(onLoginButtonClicked()));
@ -322,7 +323,7 @@ LoginPage::checkHomeserverVersion()
break;
}
}
emit versionOk(loginMethod_);
emit versionOkCb(loginMethod_);
});
});
}