Avoid endless loop and heap corruption of doom.

This commit is contained in:
Christian Speckner 2020-11-28 13:32:57 +01:00
parent 49d3877213
commit 9ac459bf71
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ void FileListWidget::setDirectory(const FilesystemNode& node,
// Initialize history
FilesystemNode tmp = _node;
while(tmp.hasParent())
while(tmp.hasParent() && !_history.full())
{
string name = tmp.getName();
if(name.back() == '/' || name.back() == '\\')