From a6fb27a3f621d6e471ab56f6ea22f068d3a6b781 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 24 Aug 2015 10:03:54 +0200 Subject: [PATCH] Improved comment. Added TODO --- src/preferences/media/MidiSettingsView.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/preferences/media/MidiSettingsView.cpp b/src/preferences/media/MidiSettingsView.cpp index 5310a4d9ca..32e3c854d2 100644 --- a/src/preferences/media/MidiSettingsView.cpp +++ b/src/preferences/media/MidiSettingsView.cpp @@ -91,6 +91,8 @@ MidiSettingsView::MessageReceived(BMessage* message) void MidiSettingsView::_RetrieveSoftSynthList() { + // TODO: Duplicated code between here + // and BSoftSynth::SetDefaultInstrumentsFile BStringList paths; status_t status = BPathFinder::FindPaths(B_FIND_PATH_DATA_DIRECTORY, "synth", paths); @@ -108,9 +110,10 @@ MidiSettingsView::_RetrieveSoftSynthList() BNode node(&entry); BNodeInfo nodeInfo(&node); char mimeType[B_MIME_TYPE_LENGTH]; - // TODO: For some reason this doesn't work + // TODO: For some reason the mimetype check fails. + // maybe because the file hasn't yet been sniffed and recognized? if (nodeInfo.GetType(mimeType) == B_OK - /*&& !strcmp(mimeType, "audio/x-soundfont")*/) { + /*&& !strcmp(mimeType, "audio/x-soundfont")*/) { BPath fullPath = paths.StringAt(i).String(); fullPath.Append(entry.Name()); fListView->AddItem(new BStringItem(fullPath.Path()));