aboutsummaryrefslogtreecommitdiff
path: root/src/charselect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/charselect.cpp')
-rw-r--r--src/charselect.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/charselect.cpp b/src/charselect.cpp
index 8e0aab5e..33cc5176 100644
--- a/src/charselect.cpp
+++ b/src/charselect.cpp
@@ -7,6 +7,8 @@
void Courtroom::construct_char_select()
{
+ this->setWindowFlags( (this->windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowMaximizeButtonHint);
+
ui_char_select_background = new AOImage(this, ao_app);
ui_char_buttons = new QWidget(ui_char_select_background);
@@ -60,6 +62,9 @@ void Courtroom::construct_char_select()
SLOT(on_char_passworded_clicked()));
connect(ui_char_taken, SIGNAL(stateChanged(int)), this,
SLOT(on_char_taken_clicked()));
+
+ truncate_label_text(ui_char_taken, "char_taken");
+ truncate_label_text(ui_char_passworded, "char_passworded");
}
void Courtroom::set_char_select()
@@ -72,10 +77,10 @@ void Courtroom::set_char_select()
if (f_charselect.width < 0 || f_charselect.height < 0) {
qDebug() << "W: did not find char_select width or height in "
"courtroom_design.ini!";
- this->resize(714, 668);
+ this->setFixedSize(714, 668);
}
else
- this->resize(f_charselect.width, f_charselect.height);
+ this->setFixedSize(f_charselect.width, f_charselect.height);
ui_char_select_background->resize(f_charselect.width, f_charselect.height);
ui_char_select_background->set_image("charselect_background");
@@ -131,7 +136,7 @@ void Courtroom::char_clicked(int n_char)
qDebug() << "char_ini_path" << char_ini_path;
if (!file_exists(char_ini_path)) {
- call_notice("Could not find " + char_ini_path);
+ call_error("Could not find " + char_ini_path);
return;
}
}
@@ -146,8 +151,6 @@ void Courtroom::char_clicked(int n_char)
else
update_character(n_char);
- enter_courtroom();
-
if (n_char != -1)
ui_ic_chat_name->setPlaceholderText(char_list.at(n_char).name);
}