From ee33a70bb254624baa6e061bb6a2de26df16db8c Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 23 Aug 2025 00:42:06 +0200 Subject: [PATCH] Fix opening "Home space" on startup There was a mismatch here between the value used in the config ("Home") and the value used in the property (empty string) --- src/app/roommanager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/roommanager.cpp b/src/app/roommanager.cpp index 3e52b5afa..8af2f3a36 100644 --- a/src/app/roommanager.cpp +++ b/src/app/roommanager.cpp @@ -347,7 +347,11 @@ void RoomManager::openRoomForActiveConnection() setCurrentSpace({}, false); return; } - setCurrentSpace(m_lastSpaceConfig.readEntry(m_connection->userId(), QString()), true); + auto lastSpace = m_lastSpaceConfig.readEntry(m_connection->userId(), QString()); + if (lastSpace == u"Home"_s) { + lastSpace.clear(); + } + setCurrentSpace(lastSpace, true); } UriResolveResult RoomManager::visitUser(User *user, const QString &action)