diff options
Diffstat (limited to 'src/archivefiletree.cpp')
| -rw-r--r-- | src/archivefiletree.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/archivefiletree.cpp b/src/archivefiletree.cpp index 77b17112..c95cc3cd 100644 --- a/src/archivefiletree.cpp +++ b/src/archivefiletree.cpp @@ -191,9 +191,11 @@ protected: std::make_shared<ArchiveFileEntry>(parent, currentName, std::get<2>(p), QDateTime())); currentName = ""; } - // Otherwize, it is the actual "file" corresponding to the directory, so we can retrieve - // the index here: - currentIndex = std::get<2>(p); + else { + // Otherwize, it is the actual "file" corresponding to the directory, so we can retrieve + // the index here: + currentIndex = std::get<2>(p); + } } else { currentFiles.push_back({ |
