Fix active connection not loading on startup
This commit is contained in:
committed by
Carl Schwan
parent
bd00a73aa9
commit
2c1cbc91d8
@@ -261,9 +261,9 @@ void Controller::invokeLogin()
|
|||||||
auto accessToken = loadAccessTokenFromKeyChain(account);
|
auto accessToken = loadAccessTokenFromKeyChain(account);
|
||||||
|
|
||||||
auto c = new Connection(account.homeserver(), this);
|
auto c = new Connection(account.homeserver(), this);
|
||||||
|
addConnection(c);
|
||||||
connect(c, &Connection::connected, this, [=] {
|
connect(c, &Connection::connected, this, [=] {
|
||||||
c->loadState();
|
c->loadState();
|
||||||
addConnection(c);
|
|
||||||
});
|
});
|
||||||
connect(c, &Connection::loginError, this, [=](const QString &error, const QString &) {
|
connect(c, &Connection::loginError, this, [=](const QString &error, const QString &) {
|
||||||
if (error == "Unrecognised access token") {
|
if (error == "Unrecognised access token") {
|
||||||
|
|||||||
Reference in New Issue
Block a user