Activate window that already has the room open if possible
This commit is contained in:
parent
62bf1b253e
commit
87070289fd
5 changed files with 22 additions and 9 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue