Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(theme): clear stylesheet cache on theme colour change
Browse files Browse the repository at this point in the history
Fix #5092
  • Loading branch information
anthonybilinski committed Apr 25, 2018
1 parent d7b6af9 commit 8ba8ce9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widget/style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ba8ce9

Please sign in to comment.