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)
{
switch (message->what) {
case kSelectSoundFont: {
BString text = "Active Sound Font: ";
text << _SelectedSoundFont();
fActiveSoundFont->SetText(text);
_SaveSettings();
case kSelectSoundFont:
{
BString text = _SelectedSoundFont();
if (text != "") {
text.Prepend("Active Sound Font: ");
fActiveSoundFont->SetText(text);
_SaveSettings();
}
break;
}