Midi preflet: remove check for big_synth.sy, since we don't create it
anymore. Fixed comment.
This commit is contained in:
@@ -105,11 +105,6 @@ MidiSettingsView::_RetrieveSoftSynthList()
|
|||||||
if (directory.InitCheck() != B_OK)
|
if (directory.InitCheck() != B_OK)
|
||||||
continue;
|
continue;
|
||||||
while (directory.GetNextEntry(&entry) == B_OK) {
|
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);
|
BNode node(&entry);
|
||||||
BNodeInfo nodeInfo(&node);
|
BNodeInfo nodeInfo(&node);
|
||||||
char mimeType[B_MIME_TYPE_LENGTH];
|
char mimeType[B_MIME_TYPE_LENGTH];
|
||||||
@@ -129,8 +124,7 @@ void
|
|||||||
MidiSettingsView::_LoadSettings()
|
MidiSettingsView::_LoadSettings()
|
||||||
{
|
{
|
||||||
// TODO: Duplicated code between here
|
// TODO: Duplicated code between here
|
||||||
// and BSoftSynth::LoadDefaultInstruments
|
// and BSoftSynth::SetDefaultInstrumentsFile
|
||||||
|
|
||||||
char buffer[512];
|
char buffer[512];
|
||||||
BPath path;
|
BPath path;
|
||||||
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
if (find_directory(B_USER_SETTINGS_DIRECTORY, &path) == B_OK) {
|
||||||
@@ -160,6 +154,7 @@ MidiSettingsView::_SaveSettings()
|
|||||||
int32 selection = fListView->CurrentSelection();
|
int32 selection = fListView->CurrentSelection();
|
||||||
if (selection < 0)
|
if (selection < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
BStringItem* item = (BStringItem*)fListView->ItemAt(selection);
|
BStringItem* item = (BStringItem*)fListView->ItemAt(selection);
|
||||||
if (item == NULL)
|
if (item == NULL)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user