summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-05-07 19:03:58 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-05-07 19:12:30 +0200
commit87070289fd839b5be40e7cb9531d43921a10a99a (patch)
treef06ac244c0c08bf282fa99845f35b075b9195b16 /src/MainWindow.cpp
parentRework focus handling (diff)
downloadnheko-87070289fd839b5be40e7cb9531d43921a10a99a.tar.xz
Activate window that already has the room open if possible
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 7f62b23b..6cae64b2 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -445,8 +445,8 @@ MainWindow::removePerRoomWindow(const QString &room, QWindow *window)
 {
     roomWindows_.remove(room, window);
 }
-const QWindow *
-MainWindow::windowForRoom(const QString &room) const
+QWindow *
+MainWindow::windowForRoom(const QString &room)
 {
     auto currMainWindowRoom = ChatPage::instance()->timelineManager()->rooms()->currentRoom();
     if ((currMainWindowRoom && currMainWindowRoom->roomId() == room) ||