QTfrontend/ui/widget/frameTeam.cpp
changeset 13239 6fa6626eb273
parent 13235 d5a029299407
child 13491 4ef83bcb850b
--- a/QTfrontend/ui/widget/frameTeam.cpp	Sat Mar 17 04:02:37 2018 +0100
+++ b/QTfrontend/ui/widget/frameTeam.cpp	Sat Mar 17 04:12:10 2018 +0100
@@ -73,8 +73,8 @@
     mainLayout.addWidget(pTeamShowWidget);
     teamToWidget.insert(team, pTeamShowWidget);
     QResizeEvent* pevent=new QResizeEvent(parentWidget()->size(), parentWidget()->size());
+    updateDecoFrame();
     QCoreApplication::postEvent(parentWidget(), pevent);
-    updateDecoFrame();
 }
 
 void FrameTeams::removeTeam(HWTeam team)
@@ -85,8 +85,8 @@
     it.value()->deleteLater();
     teamToWidget.erase(it);
     QResizeEvent* pevent=new QResizeEvent(parentWidget()->size(), parentWidget()->size());
+    updateDecoFrame();
     QCoreApplication::postEvent(parentWidget(), pevent);
-    updateDecoFrame();
 }
 
 void FrameTeams::resetTeams()
@@ -98,6 +98,7 @@
         teamToWidget.erase(it++);
     }
     QResizeEvent* pevent=new QResizeEvent(parentWidget()->size(), parentWidget()->size());
+    updateDecoFrame();
     QCoreApplication::postEvent(parentWidget(), pevent);
 }