LadspaManager: Skip empty entries when looking for plugins (#5677)

This fixes crashes when starting LMMS
from specific working directories.
This commit is contained in:
Hyunjin Song
2020-09-18 15:55:44 +09:00
committed by GitHub
parent 1dab416c6c
commit 27a9f7711e

View File

@@ -59,6 +59,8 @@ LadspaManager::LadspaManager()
for( QStringList::iterator it = ladspaDirectories.begin();
it != ladspaDirectories.end(); ++it )
{
// Skip empty entries as QDir will interpret it as the working directory
if ((*it).isEmpty()) { continue; }
QDir directory( ( *it ) );
QFileInfoList list = directory.entryInfoList();
for( QFileInfoList::iterator file = list.begin();