Browse Source

fix(theme): clear stylesheet cache on theme colour change

Fix #5092
reviewable/pr5104/r1
Anthony Bilinski 7 years ago
parent
commit
8ba8ce91f3
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 1
      src/widget/style.cpp

1
src/widget/style.cpp

@ -196,6 +196,7 @@ void Style::repolish(QWidget* w) @@ -196,6 +196,7 @@ void Style::repolish(QWidget* w)
void Style::setThemeColor(int color)
{
stylesheetsCache.clear(); // clear stylesheet cache which includes color info
if (color < 0 || color >= themeColorColors.size())
setThemeColor(QColor());
else

Loading…
Cancel
Save