aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2021-01-24 23:08:22 -0600
committerGitHub <noreply@github.com>2021-01-24 23:08:22 -0600
commite3f11ebed3f84fc91b8fa982b10ef5ea68082d44 (patch)
treeba38951ebec88df2515b627d41fb8ed859b54a57
parent5d9309b1b3215eb3f29b81e4e2bd9d4f82f51843 (diff)
parent1aa9cef44cb3c7af19fb93586d44656222bb5331 (diff)
Merge pull request #435 from AttorneyOnline/fix/css-resize
Call set_widgets() every time we select a character to prevent erroneously displaying courtroom with char_select's window size
-rw-r--r--src/charselect.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/charselect.cpp b/src/charselect.cpp
index abed0950..1356f242 100644
--- a/src/charselect.cpp
+++ b/src/charselect.cpp
@@ -176,8 +176,10 @@ void Courtroom::char_clicked(int n_char)
new AOPacket("CC#" + QString::number(ao_app->s_pv) + "#" +
QString::number(n_char) + "#" + get_hdid() + "#%"));
}
- else
+ else {
update_character(n_char);
+ set_widgets(); // so we don't erroneously keep the charselect's fixedSize
+ }
if (n_char != -1)
ui_ic_chat_name->setPlaceholderText(char_list.at(n_char).name);