Bug in KnownPluginList


#1

At line 190 of knownPluginList.cpp:

[code]void KnownPluginList::scanAndAddDragAndDroppedFiles (const StringArray& files,
OwnedArray & typesFound)
{
for (int i = 0; i < files.size(); ++i)
{
bool loaded = false;

    for (int j = 0; j < AudioPluginFormatManager::getInstance()->getNumFormats(); ++j)
    {
        AudioPluginFormat* const format = AudioPluginFormatManager::getInstance()->getFormat (j);

        if (scanAndAddFile (files[i], true, typesFound, *format))
		{
                            loaded = true;
			return; //added!!!
		}
    }
...

}
[/code]

Without the “return” two instances of each dragged-and-dropped plugin are created (on top of each other in the Plugin Host, for instance)… seems like every plugin fulfills two format requirements (haven’t digged too deep into that).


#2

Good point, thanks!