From 7ff1533799127ddbce0377f1c92780e943841576 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Thu, 2 Jun 2022 20:07:49 +0100 Subject: [PATCH] GUI: Fix setting the soundfont in ConfMan This fixes bug #13531. The issue was a regression introduced in commit 7dd0c1ddf8. --- gui/options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/options.cpp b/gui/options.cpp index efda91c2681..0a0560f1d97 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -908,8 +908,8 @@ void OptionsDialog::apply() { Common::U32String soundFont(_soundFont->getLabel()); if (soundFont != ConfMan.get("soundfont", _domain)) { _soundFont->setFontColor(ThemeEngine::FontColor::kFontColorNormal); - if (soundFont.empty() || (soundFont != _c("None", "soundfont"))) - ConfMan.removeKey("soundpath", _domain); + if (soundFont.empty() || (soundFont == _c("None", "soundfont"))) + ConfMan.removeKey("soundfont", _domain); else ConfMan.set("soundfont", soundFont.encode(), _domain); }