automaticall save/restore subscribed chat rooms. The advantage is that auto-subscribed is not needed anymore and chat rooms will survive automatically

This commit is contained in:
csoler 2019-06-15 13:54:34 +02:00
parent ee9c240fb0
commit c72b49c296
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
7 changed files with 136 additions and 16 deletions

View file

@ -912,7 +912,10 @@ void ChatLobbyDialog::showDialog(uint chatflags)
if (chatflags & RS_CHAT_FOCUS)
{
MainWindow::showWindow(MainWindow::ChatLobby);
dynamic_cast<ChatLobbyWidget*>(MainWindow::getPage(MainWindow::ChatLobby))->setCurrentChatPage(this) ;
MainPage *p = MainWindow::getPage(MainWindow::ChatLobby);
if(p != NULL)
dynamic_cast<ChatLobbyWidget*>(p)->setCurrentChatPage(this) ;
}
}