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