diff --git a/src/add-ons/tracker/zipomatic/ZipperThread.cpp b/src/add-ons/tracker/zipomatic/ZipperThread.cpp index dfe5d6388c..b49855eb14 100644 --- a/src/add-ons/tracker/zipomatic/ZipperThread.cpp +++ b/src/add-ons/tracker/zipomatic/ZipperThread.cpp @@ -95,7 +95,12 @@ ZipperThread::ThreadStartup() BString archiveName; - if (gotDirRef || sameFolder) { + if (gotDirRef) { + BEntry entry(&dirRef); + BPath path; + entry.GetPath(&path); + archiveName = path.Path(); + } else if (sameFolder) { BEntry entry(&lastRef); BPath path; entry.GetParent(&entry);