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);