summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r--src/gui/charselectdialog.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp
index a18f3d383..38a58c03c 100644
--- a/src/gui/charselectdialog.cpp
+++ b/src/gui/charselectdialog.cpp
@@ -550,15 +550,13 @@ bool CharSelectDialog::selectByName(const std::string &name,
CharacterDisplay::CharacterDisplay(CharSelectDialog *charSelectDialog):
mCharacter(nullptr),
- mPlayerBox(new PlayerBox)
+ mPlayerBox(new PlayerBox),
+ mName(new Label("wwwwwwwwwwwwwwwwwwwwwwww")),
+ mLevel(new Label("(888)")),
+ mMoney(new Label("wwwwwwwww")),
+ mButton(new Button("wwwwwwwww", "go", charSelectDialog)),
+ mDelete(new Button(_("Delete"), "delete", charSelectDialog))
{
- mButton = new Button("wwwwwwwww", "go", charSelectDialog);
- mName = new Label("wwwwwwwwwwwwwwwwwwwwwwww");
- mLevel = new Label("(888)");
- mMoney = new Label("wwwwwwwww");
-
- mDelete = new Button(_("Delete"), "delete", charSelectDialog);
-
LayoutHelper h(this);
ContainerPlacer placer = h.getPlacer(0, 0);
@@ -571,7 +569,6 @@ CharacterDisplay::CharacterDisplay(CharSelectDialog *charSelectDialog):
update();
-
// Setting the width so that the largest label fits.
mName->adjustSize();
mMoney->adjustSize();