From 959051f813efa5014b7f32a00b5caa685e1363bb Mon Sep 17 00:00:00 2001 From: JackBurton Date: Tue, 17 Mar 2015 21:11:52 +0100 Subject: [PATCH] Midi preflet: remove check for big_synth.sy, since we don't create it anymore. Fixed comment. --- src/preferences/media/MidiSettingsView.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/preferences/media/MidiSettingsView.cpp b/src/preferences/media/MidiSettingsView.cpp index 2ea0143f32..65b3884f59 100644 --- a/src/preferences/media/MidiSettingsView.cpp +++ b/src/preferences/media/MidiSettingsView.cpp @@ -105,11 +105,6 @@ MidiSettingsView::_RetrieveSoftSynthList() if (directory.InitCheck() != B_OK) continue; while (directory.GetNextEntry(&entry) == B_OK) { - // TODO: Get rid of this as soon as we update - // the SoundFont package not to create the link - // anymore - if (!strcmp(entry.Name(), "big_synth.sy")) - continue; BNode node(&entry); BNodeInfo nodeInfo(&node); char mimeType[B_MIME_TYPE_LENGTH]; @@ -129,8 +124,7 @@ void MidiSettingsView::_LoadSettings() { // TODO: Duplicated code between here - // and BSoftSynth::LoadDefaultInstruments - + // and BSoftSynth::SetDefaultInstrumentsFile char buffer[512]; BPath path; if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) { @@ -160,6 +154,7 @@ MidiSettingsView::_SaveSettings() int32 selection = fListView->CurrentSelection(); if (selection < 0) return; + BStringItem* item = (BStringItem*)fListView->ItemAt(selection); if (item == NULL) return;