Gui: [skip ci] fix appearance of TaskGroups when a style sheet is set

This commit is contained in:
wmayer
2020-10-06 18:20:34 +02:00
parent 6cb4c91ee1
commit 804ed5115d

View File

@@ -2345,8 +2345,14 @@ void Application::setStyleSheet(const QString& qssFile, bool tiledBackground)
#endif
}
if (mdi->style())
mdi->style()->unpolish(qApp);
// At startup time unpolish() mustn't be executed because otherwise the QSint widget
// appear incorrect due to an outdated cache.
// See https://doc.qt.io/qt-5/qstyle.html#unpolish-1
// See https://forum.freecadweb.org/viewtopic.php?f=17&t=50783
if (d->startingUp == false) {
if (mdi->style())
mdi->style()->unpolish(qApp);
}
}
void Application::checkForPreviousCrashes()