diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-07 22:09:40 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-07 22:09:40 +0200 |
| commit | b2bd13e3db1d1469c59527fb90e763a8e42dd1f8 (patch) | |
| tree | 8b0ea47c9a7a449a78d6f877ec39a387e4c069db | |
| parent | 411b73e0aa68899d04b309b443aebf8de4b1a057 (diff) | |
Fix another issue with some archives not being loading properly.
| -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({ |
