--- 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);
}