Added check to make sure file names aren't empty.

This commit is contained in:
Aloshi 2012-08-10 20:29:51 -05:00
parent b6f9dc318e
commit 2bd9c51447

View file

@ -96,6 +96,9 @@ void SystemData::populateFolder(FolderData* folder)
{ {
fs::path filePath = (*dir).path(); fs::path filePath = (*dir).path();
if(filePath.stem().string().empty())
continue;
if(fs::is_directory(filePath)) if(fs::is_directory(filePath))
{ {
FolderData* newFolder = new FolderData(this, filePath.string(), filePath.stem().string()); FolderData* newFolder = new FolderData(this, filePath.string(), filePath.stem().string());