Commit e4cd50b1 authored by twanvl's avatar twanvl

init pack total control before setting sizer, so CustomPackDialog gets the right size

parent b20d2637
...@@ -363,12 +363,13 @@ CustomPackDialog::CustomPackDialog(Window* parent, const SetP& set, const PackTy ...@@ -363,12 +363,13 @@ CustomPackDialog::CustomPackDialog(Window* parent, const SetP& set, const PackTy
} }
} }
} }
s->SetSizeHints(this);
SetSizer(s);
// update totals // update totals
generator.reset(set,0); generator.reset(set,0);
totals->setGame(set->game); totals->setGame(set->game);
updateTotals(); updateTotals();
// set sizer
s->SetSizeHints(this);
SetSizer(s);
} }
void CustomPackDialog::updateTotals() { void CustomPackDialog::updateTotals() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment