Fix crash when logging out active connection

This commit is contained in:
Tobias Fella
2026-01-19 11:50:45 +01:00
committed by Tobias Fella
parent 44fa196a26
commit 889b7dd2e6

View File

@@ -354,7 +354,9 @@ void RoomManager::loadInitialRoom()
void RoomManager::openRoomForActiveConnection()
{
Q_ASSERT(m_connection);
if (!m_connection) {
return;
}
auto lastSpace = m_lastRoomConfig.readEntry(u"lastSpace"_s, QString());
if (lastSpace == u"Home"_s) {