Skip to content

Commit

Permalink
Gui: [skip ci] fix appearance of TaskGroups when a style sheet is set
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 6, 2020
1 parent 6d7ed78 commit a299f23
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Gui/Application.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit a299f23

Please sign in to comment.