resize bugfix
authordisplacer
Mon, 28 Aug 2006 19:02:57 +0000
changeset 131 482f78c595ec
parent 130 19e3c16fb9f0
child 132 2d0f404cdf05
resize bugfix
QTfrontend/teamselect.cpp
--- 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());
   }
 }