aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/ArchiveFileOperator.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-29 01:48:21 +0000
committersaturneric <[email protected]>2024-07-29 01:48:21 +0000
commit3dccd8cff1c3b063110e00112b0878de887daca3 (patch)
tree68fdeebd5ffe8bbbc53845559d7754bc8154976d /src/core/function/ArchiveFileOperator.cpp
parentfix: copy is not the real one (diff)
downloadGpgFrontend-3dccd8cff1c3b063110e00112b0878de887daca3.tar.gz
GpgFrontend-3dccd8cff1c3b063110e00112b0878de887daca3.zip
fix: solve qt5 problems
Diffstat (limited to 'src/core/function/ArchiveFileOperator.cpp')
-rw-r--r--src/core/function/ArchiveFileOperator.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/function/ArchiveFileOperator.cpp b/src/core/function/ArchiveFileOperator.cpp
index b3c0f21d..0df1a284 100644
--- a/src/core/function/ArchiveFileOperator.cpp
+++ b/src/core/function/ArchiveFileOperator.cpp
@@ -144,11 +144,8 @@ 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());