Remove ugly empty rectangle in empty active teams list for real
authorWuzzy <Wuzzy2@mail.ru>
Sat, 17 Mar 2018 04:12:10 +0100
changeset 13234 6fa6626eb273
parent 13233 bb73d6d3348a
child 13235 9f5023a5f9e1
Remove ugly empty rectangle in empty active teams list for real
QTfrontend/ui/widget/frameTeam.cpp
--- 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);
 }