--- a/QTfrontend/teamselect.cpp Sun Aug 20 17:18:53 2006 +0000
+++ b/QTfrontend/teamselect.cpp Sun Aug 20 17:34:22 2006 +0000
@@ -51,7 +51,16 @@
pRemoveTeams->removeTeam(team);
QObject::connect(pAddTeams->getTeamWidget(team), SIGNAL(teamStatusChanged(HWTeam)),
this, SLOT(changeTeamStatus(HWTeam)));
- resize(sizeHint());
+ QSize szh=sizeHint();
+ if(szh.isValid()) resize(szh);
+ else {
+ szh=pAddTeams->sizeHint();
+ QSize szh1=pRemoveTeams->sizeHint();
+ if(szh.isValid() && szh1.isValid()) {
+ pAddTeams->resize(szh);
+ pRemoveTeams->resize(szh1);
+ }
+ }
}
void TeamSelWidget::addScrArea(FrameTeams* pfteams, QColor color)