Enable lazy loading by default.
Also fixes undefined error when not logged in.
This commit is contained in:
@@ -14,9 +14,7 @@ RoomListModel::RoomListModel(QObject* parent) : QAbstractListModel(parent) {}
|
||||
RoomListModel::~RoomListModel() {}
|
||||
|
||||
void RoomListModel::setConnection(Connection* connection) {
|
||||
Q_ASSERT(connection);
|
||||
|
||||
if (connection == m_connection) return;
|
||||
if (!connection && connection == m_connection) return;
|
||||
|
||||
using QMatrixClient::Room;
|
||||
m_connection = connection;
|
||||
|
||||
Reference in New Issue
Block a user