Fix undefined behavior when all users are logged out.
This commit is contained in:
@@ -60,8 +60,6 @@ class Controller : public QObject {
|
||||
}
|
||||
|
||||
void setConnection(Connection* conn) {
|
||||
if (!conn)
|
||||
return;
|
||||
if (conn == m_connection)
|
||||
return;
|
||||
m_connection = conn;
|
||||
|
||||
Reference in New Issue
Block a user