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
+6 -3
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();
if (text != "") {
text.Prepend("Active Sound Font: ");
fActiveSoundFont->SetText(text); fActiveSoundFont->SetText(text);
_SaveSettings(); _SaveSettings();
}
break; break;
} }