diff --git a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp index 87f9f0a07..b695cc62e 100644 --- a/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp +++ b/retroshare-gui/src/gui/chat/ChatLobbyDialog.cpp @@ -240,7 +240,10 @@ void ChatLobbyDialog::init() // add to window - dynamic_cast(MainWindow::getPage(MainWindow::ChatLobby))->addChatPage(this) ; + ChatLobbyWidget *chatLobbyPage = dynamic_cast(MainWindow::getPage(MainWindow::ChatLobby)); + if (chatLobbyPage) { + chatLobbyPage->addChatPage(this) ; + } /** List of muted Participants */ mutedParticipants.clear() ;