Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
cen1 committed Oct 20, 2024
1 parent fed2917 commit 088c59a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions quazip/JlCompress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ bool JlCompress::compressSubDir(QuaZip* zip, QString dir, QString origDir, bool
zip->getMode()!=QuaZip::mdAppend &&
zip->getMode()!=QuaZip::mdAdd) return false;

zip->setUtf8Enabled(options.getUtf8Enabled());

QDir directory(dir);
if (!directory.exists()) return false;

Expand Down Expand Up @@ -264,6 +262,7 @@ bool JlCompress::compressFiles(QString fileCompressed, QStringList files, const
// Create zip
QuaZip zip(fileCompressed);
zip.setUtf8Enabled(options.getUtf8Enabled());

QDir().mkpath(QFileInfo(fileCompressed).absolutePath());
if(!zip.open(QuaZip::mdCreate)) {
QFile::remove(fileCompressed);
Expand Down
2 changes: 1 addition & 1 deletion quazip/JlCompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class QUAZIP_EXPORT JlCompress {
// If set, used as last modified on file inside the archive.
// If compressing a directory, used for all files.
QDateTime m_dateTime;

CompressionStrategy m_compressionStrategy;

/* Enables UTF-8 support for filenames and comments.
Expand Down

0 comments on commit 088c59a

Please sign in to comment.