QTfrontend/teamselect.cpp
changeset 131 482f78c595ec
parent 122 4911cf9c1924
child 132 2d0f404cdf05
--- a/QTfrontend/teamselect.cpp	Sun Aug 27 13:47:30 2006 +0000
+++ b/QTfrontend/teamselect.cpp	Mon Aug 28 19:02:57 2006 +0000
@@ -51,15 +51,12 @@
   pRemoveTeams->removeTeam(team);
   QObject::connect(pAddTeams->getTeamWidget(team), SIGNAL(teamStatusChanged(HWTeam)),
 		   this, SLOT(changeTeamStatus(HWTeam)));
-  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);
-    }
+
+  QSize szh=pAddTeams->sizeHint();
+  QSize szh1=pRemoveTeams->sizeHint();
+  if(szh.isValid() && szh1.isValid()) {
+    pAddTeams->resize(pAddTeams->size().width(), szh.height());
+    pRemoveTeams->resize(pRemoveTeams->size().width(), szh1.height());
   }
 }