Skip to content
Permalink
Browse files

Do not re-index themes in Themes::getConfiguredStyle() if both the th…

…eme and style are unset.
  • Loading branch information...
mkrautz committed Jul 12, 2015
1 parent 1408041 commit 0a5d2bae481f5c4e4ecb95e81db5557a4ea69589
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/mumble/Themes.cpp
@@ -35,6 +35,10 @@
#include "MumbleApplication.h"

boost::optional<ThemeInfo::StyleInfo> Themes::getConfiguredStyle(const Settings &settings) {
if (settings.themeName.isEmpty() && settings.themeStyleName.isEmpty()) {
return boost::none;
}

const ThemeMap themes = getThemes();
ThemeMap::const_iterator themeIt = themes.find(settings.themeName);
if (themeIt == themes.end()) {

0 comments on commit 0a5d2ba

Please sign in to comment.
You can’t perform that action at this time.