mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed possible crash in ChatLobbyDialog::init by checking return value of dynamic_cast.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8591 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
65bdc96b88
commit
86a5c2e656
@ -240,7 +240,10 @@ void ChatLobbyDialog::init()
|
|||||||
|
|
||||||
// add to window
|
// add to window
|
||||||
|
|
||||||
dynamic_cast<ChatLobbyWidget*>(MainWindow::getPage(MainWindow::ChatLobby))->addChatPage(this) ;
|
ChatLobbyWidget *chatLobbyPage = dynamic_cast<ChatLobbyWidget*>(MainWindow::getPage(MainWindow::ChatLobby));
|
||||||
|
if (chatLobbyPage) {
|
||||||
|
chatLobbyPage->addChatPage(this) ;
|
||||||
|
}
|
||||||
|
|
||||||
/** List of muted Participants */
|
/** List of muted Participants */
|
||||||
mutedParticipants.clear() ;
|
mutedParticipants.clear() ;
|
||||||
|
Loading…
Reference in New Issue
Block a user