aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/ArchiveFileOperator.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2024-01-31 13:13:53 +0000
committerGitHub <[email protected]>2024-01-31 13:13:53 +0000
commitb79cb4ecb942b0c4fb8fe7955d1c6a777f13bef6 (patch)
treebe0c854dbd2c64a980003e91fa843718346635d6 /src/core/function/ArchiveFileOperator.cpp
parentMerge pull request #127 from saturneric/dev/2.1.1/main (diff)
parentfix: copy qt5 dlls at qt5 build mode (diff)
downloadGpgFrontend-b79cb4ecb942b0c4fb8fe7955d1c6a777f13bef6.tar.gz
GpgFrontend-b79cb4ecb942b0c4fb8fe7955d1c6a777f13bef6.zip
Merge pull request #128 from saturneric/dev/2.1.1/main
Develop 2.1.2.3
Diffstat (limited to 'src/core/function/ArchiveFileOperator.cpp')
-rw-r--r--src/core/function/ArchiveFileOperator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/function/ArchiveFileOperator.cpp b/src/core/function/ArchiveFileOperator.cpp
index 2b76e4ac..475ef434 100644
--- a/src/core/function/ArchiveFileOperator.cpp
+++ b/src/core/function/ArchiveFileOperator.cpp
@@ -143,7 +143,11 @@ void ArchiveFileOperator::NewArchive2DataExchanger(
#endif
QFile file(source_path);
+#ifdef QT5_BUILD
+ if (file.open(QIODevice::ReadOnly)) {
+#else
if (file.open(QIODeviceBase::ReadOnly)) {
+#endif
// turn absolute path to relative path
auto relativ_path_name = base_path.relativeFilePath(source_path);
archive_entry_set_pathname(entry, relativ_path_name.toUtf8());