1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

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

Fix #5092
This commit is contained in:
Anthony Bilinski 2018-04-24 17:53:56 -07:00
parent d7b6af9a5b
commit 8ba8ce91f3
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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