mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Merge pull request #398 from Jedi18/master
Fix assert failure due to calling versionOk on a different thread
This commit is contained in:
commit
4f80fbea97
1 changed files with 4 additions and 3 deletions
|
@ -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_);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue