Finished support for theme loading.

Fixed several bugs regarding theme loading.

svn-id: r33728
This commit is contained in:
Vicent Marti 2008-08-09 22:40:05 +00:00
parent 103a4f6681
commit 185dbbe84d
9 changed files with 90 additions and 85 deletions

View file

@ -907,7 +907,7 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
if (browser.runModal() > 0) {
// User made his choice...
const Common::String &theme = browser.selected();
if (0 != theme.compareToIgnoreCase(g_gui.theme()->getStylefileName()))
if (0 != theme.compareToIgnoreCase(g_gui.theme()->getThemeFileName()))
if (g_gui.loadNewTheme(theme)) {
_curTheme->setLabel(g_gui.theme()->getThemeName());
ConfMan.set("gui_theme", theme);