diff --git a/src/app/models/notificationsmodel.cpp b/src/app/models/notificationsmodel.cpp index 660b86d45..ef5cfaa66 100644 --- a/src/app/models/notificationsmodel.cpp +++ b/src/app/models/notificationsmodel.cpp @@ -92,7 +92,9 @@ void NotificationsModel::setConnection(NeoChatConnection *connection) void NotificationsModel::loadData() { - Q_ASSERT(m_connection); + if (!m_connection) { + return; + } if (m_job || (m_notifications.size() && m_nextToken.isEmpty())) { return; }