Fix undefined behavior when all users are logged out.

This commit is contained in:
Black Hat
2019-04-29 15:03:11 +08:00
parent 2a86fbd8b6
commit d8c98374e4
3 changed files with 5 additions and 7 deletions

View File

@@ -60,8 +60,6 @@ class Controller : public QObject {
}
void setConnection(Connection* conn) {
if (!conn)
return;
if (conn == m_connection)
return;
m_connection = conn;