MediaSettings: Don't change the active soundfont

if the user clicked on empty space
This commit is contained in:
Stefano Ceccherini 2016-09-24 22:06:52 +02:00
parent 873a8ad914
commit fa3f84b78c
1 changed files with 8 additions and 5 deletions

View File

@ -80,11 +80,14 @@ void
MidiSettingsView::MessageReceived(BMessage* message) MidiSettingsView::MessageReceived(BMessage* message)
{ {
switch (message->what) { switch (message->what) {
case kSelectSoundFont: { case kSelectSoundFont:
BString text = "Active Sound Font: "; {
text << _SelectedSoundFont(); BString text = _SelectedSoundFont();
fActiveSoundFont->SetText(text); if (text != "") {
_SaveSettings(); text.Prepend("Active Sound Font: ");
fActiveSoundFont->SetText(text);
_SaveSettings();
}
break; break;
} }