From 2bd9c51447bf4f246bdc0f57137f28cd54405d4b Mon Sep 17 00:00:00 2001 From: Aloshi Date: Fri, 10 Aug 2012 20:29:51 -0500 Subject: [PATCH] Added check to make sure file names aren't empty. --- src/SystemData.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SystemData.cpp b/src/SystemData.cpp index fe901b7c5..47d9cd4c4 100644 --- a/src/SystemData.cpp +++ b/src/SystemData.cpp @@ -96,6 +96,9 @@ void SystemData::populateFolder(FolderData* folder) { fs::path filePath = (*dir).path(); + if(filePath.stem().string().empty()) + continue; + if(fs::is_directory(filePath)) { FolderData* newFolder = new FolderData(this, filePath.string(), filePath.stem().string());