From 7b155f111daf5d7ae477b16d0f0789b1113bea74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jun 2012 00:04:33 +0300 Subject: Fix some issues after auto checking. --- src/gui/charselectdialog.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/gui/charselectdialog.cpp') 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(); -- cgit v1.2.3-70-g09d2