From 03af0c40cb19e918d73b861a273f8659a1ed8604 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Fri, 26 Aug 2016 22:11:14 +0300 Subject: Ark: [rar module] fix suppport for buggy rar versions Rar versions from 5.0 till 5.3, not including the last one were added extra spaces to short directory/file names. This behaviour resulted in appearing of additional entries for directories and may be some other issues. Also slightly rework internal rar version parsing/storing and fix some comments. (cherry picked from commit e5a3116cffdf87b13912803006311262219aeb7b) --- ark/filelistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ark/filelistview.cpp') diff --git a/ark/filelistview.cpp b/ark/filelistview.cpp index f1c941f..c1e6f3f 100644 --- a/ark/filelistview.cpp +++ b/ark/filelistview.cpp @@ -394,7 +394,7 @@ FileListView::item(const TQString& filename) const // Iterate over the current tree level siblings while (flvi) { - if (flvi->fileName() == *pathIt || flvi->fileName() == (*pathIt).stripWhiteSpace()) { + if (flvi->fileName() == *pathIt) { ++pathIt; if (pathIt != pathEnd) { flvi = (FileLVI*) flvi->firstChild(); -- cgit v1.2.1