MediaSettings: Don't change the active soundfont
if the user clicked on empty space
This commit is contained in:
parent
873a8ad914
commit
fa3f84b78c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user