Fix segfault/assert when logging out of account
This commit is contained in:
@@ -196,7 +196,7 @@ void Controller::logout(Connection *conn, bool serverSideLogout)
|
||||
conn->stopSync();
|
||||
Q_EMIT conn->stateChanged();
|
||||
Q_EMIT conn->loggedOut();
|
||||
if (!m_connections.isEmpty()) {
|
||||
if (conn == activeConnection() && !m_connections.isEmpty()) {
|
||||
setActiveConnection(m_connections[0]);
|
||||
} else {
|
||||
setActiveConnection(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user