From b2bd13e3db1d1469c59527fb90e763a8e42dd1f8 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Thu, 7 May 2020 22:09:40 +0200 Subject: Fix another issue with some archives not being loading properly. --- src/archivefiletree.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/archivefiletree.cpp') 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(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({ -- cgit v1.3.1