Fix room window closing in new lobby
This commit is contained in:
parent
c505991e75
commit
0549282da8
1 changed files with 3 additions and 2 deletions
|
@ -504,12 +504,12 @@ void tlobby_main::active_window_changed()
|
|||
if (t.whisper) {
|
||||
if (header.label() != ("<" + t.name + ">")) {
|
||||
ERR_NG << "Chat log header not what it should be! "
|
||||
<< header.label() << " vs " << ("<" + t.name + ">");
|
||||
<< header.label() << " vs " << ("<" + t.name + ">") << "\n";
|
||||
}
|
||||
} else {
|
||||
if (header.label() != (t.name)) {
|
||||
ERR_NG << "Chat log header not what it should be! "
|
||||
<< header.label() << " vs " << t.name;
|
||||
<< header.label() << " vs " << t.name << "\n";
|
||||
}
|
||||
}
|
||||
window_->invalidate_layout();
|
||||
|
@ -545,6 +545,7 @@ void tlobby_main::close_window(size_t idx)
|
|||
}
|
||||
open_windows_.erase(open_windows_.begin() + idx);
|
||||
roomlistbox_->remove_row(idx);
|
||||
chat_log_container_->remove_page(idx);
|
||||
if (active_changed) active_window_changed();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue