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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue