Ivan Savenko 1 vuosi sitten
vanhempi
sitoutus
7c18c8b1da
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      client/globalLobby/GlobalLobbyWindow.cpp

+ 1 - 0
client/globalLobby/GlobalLobbyWindow.cpp

@@ -64,6 +64,7 @@ void GlobalLobbyWindow::doOpenChannel(const std::string & channelType, const std
 	widget->getGameChatHeader()->setText(text.toString());
 	widget->getGameChatHeader()->setText(text.toString());
 
 
 	// Update currently selected item in UI
 	// Update currently selected item in UI
+	// WARNING: this invalidates function parameters since some of them are members of objects that will be destroyed by reset
 	widget->getAccountList()->reset();
 	widget->getAccountList()->reset();
 	widget->getChannelList()->reset();
 	widget->getChannelList()->reset();
 	widget->getMatchList()->reset();
 	widget->getMatchList()->reset();