From ee5588f2abffbca585252c7b6948f8cd9f6ac3f0 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Sat, 20 Jun 2015 19:37:53 -0700 Subject: [PATCH] Revert "Partially revert "Zip-O-Matic: fix zipping single folder."" This reverts commit 1639fe99dbbea9204ba8cf5edb5b67697da70b0e. --- src/add-ons/tracker/zipomatic/ZipperThread.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/add-ons/tracker/zipomatic/ZipperThread.cpp b/src/add-ons/tracker/zipomatic/ZipperThread.cpp index b49855eb14..dfe5d6388c 100644 --- a/src/add-ons/tracker/zipomatic/ZipperThread.cpp +++ b/src/add-ons/tracker/zipomatic/ZipperThread.cpp @@ -95,12 +95,7 @@ ZipperThread::ThreadStartup() BString archiveName; - if (gotDirRef) { - BEntry entry(&dirRef); - BPath path; - entry.GetPath(&path); - archiveName = path.Path(); - } else if (sameFolder) { + if (gotDirRef || sameFolder) { BEntry entry(&lastRef); BPath path; entry.GetParent(&entry);