Skip to content

Commit

Permalink
qt: Handle updates to the font attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
xdustinface committed Sep 27, 2020
1 parent c5390d5 commit 95a1698
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,10 @@ void setFont(const std::vector<QWidget*>& vecWidgets, FontWeight weight, int nPo

for (auto it : vecWidgets) {
auto fontAttributes = std::make_tuple(weight, fItalic, nPointSize);
mapNormalFontUpdates.emplace(std::make_pair(it, fontAttributes));
auto itFontUpdate = mapNormalFontUpdates.emplace(std::make_pair(it, fontAttributes));
if (!itFontUpdate.second) {
itFontUpdate.first->second = fontAttributes;
}
it->setFont(font);
}
}
Expand Down

0 comments on commit 95a1698

Please sign in to comment.