Fix broken logout.
This commit is contained in:
parent
c11429cd50
commit
3dd4f18cc4
|
@ -132,7 +132,7 @@ Column {
|
|||
highlighted: true
|
||||
text: "Logout"
|
||||
|
||||
onClicked: connection.logout()
|
||||
onClicked: spectralController.logout(connection)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include "controller.h"
|
||||
|
||||
#include "settings.h"
|
||||
#include "spectralroom.h"
|
||||
#include "spectraluser.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "events/eventcontent.h"
|
||||
#include "events/roommessageevent.h"
|
||||
|
@ -73,7 +73,8 @@ void Controller::loginWithCredentials(QString serverAddr, QString user,
|
|||
account.sync();
|
||||
addConnection(m_connection);
|
||||
});
|
||||
connect(m_connection, &Connection::loginError, [=] (QString error, QByteArray detail) {
|
||||
connect(m_connection, &Connection::loginError,
|
||||
[=](QString error, QByteArray detail) {
|
||||
emit errorOccured("Login", error);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue