Fixed crash on leave chat
This commit is contained in:
@@ -844,7 +844,7 @@ void App::addLeaveButton() {
|
||||
}
|
||||
|
||||
void App::logout() {
|
||||
server_.disconnect(this);
|
||||
server_.addToDisconnectList(this);
|
||||
userListContainer_->clear();
|
||||
menuContainer_->clear();
|
||||
userName = "";
|
||||
@@ -1116,7 +1116,6 @@ void App::showPartnerSites() {
|
||||
for (size_t i = 0; i < doc.GetRowCount(); ++i) {
|
||||
auto url = doc.GetCell<std::string>(1, i);
|
||||
auto name = doc.GetCell<std::string>(0, i);
|
||||
std::cout << url << std::endl;
|
||||
auto link = Wt::WLink(url);
|
||||
link.setTarget(Wt::LinkTarget::NewWindow);
|
||||
contentLayout->addNew<Wt::WAnchor>(link, name);
|
||||
|
||||
Reference in New Issue
Block a user