Fix disconnects

This commit is contained in:
Tobias Fella
2022-10-23 23:23:56 +02:00
parent 67b53a898f
commit bbf76e1e64
3 changed files with 2 additions and 3 deletions

View File

@@ -635,7 +635,7 @@ void Controller::setActiveConnection(Connection *connection)
return;
}
if (m_connection != nullptr) {
disconnect(connection, &Connection::syncError, this, nullptr);
disconnect(m_connection, &Connection::syncError, this, nullptr);
}
m_connection = connection;
if (connection != nullptr) {