Skip to content

Commit

Permalink
Use passed-in settings object in Themes::getConfiguredStyle().
Browse files Browse the repository at this point in the history
Refactor gone wrong.
  • Loading branch information
mkrautz committed Jul 12, 2015
1 parent d275284 commit 1408041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mumble/Themes.cpp
Expand Up @@ -42,7 +42,7 @@ boost::optional<ThemeInfo::StyleInfo> Themes::getConfiguredStyle(const Settings
return boost::none;
}

ThemeInfo::StylesMap::const_iterator styleIt = themeIt->styles.find(g.s.themeStyleName);
ThemeInfo::StylesMap::const_iterator styleIt = themeIt->styles.find(settings.themeStyleName);
if (styleIt == themeIt->styles.end()) {
qWarning() << "Configured theme" << g.s.themeName << "does not have configured style" << settings.themeStyleName;
return boost::none;
Expand Down

0 comments on commit 1408041

Please sign in to comment.