aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-24 05:30:57 +0000
committersaturneric <[email protected]>2024-01-24 05:30:57 +0000
commitf3b20c3bd01162e03fdbd98d15dbc4c05a94f184 (patch)
tree04055a3cf17187cdbdb88dd7fa9a84d330b0dbf5
parentfix: solve an issue that switch tab but crypto menu won't update (diff)
downloadGpgFrontend-f3b20c3bd01162e03fdbd98d15dbc4c05a94f184.tar.gz
GpgFrontend-f3b20c3bd01162e03fdbd98d15dbc4c05a94f184.zip
fix: decrypt tar.gpg but output path is incorrect
-rw-r--r--src/core/utils/GpgUtils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/utils/GpgUtils.cpp b/src/core/utils/GpgUtils.cpp
index db3513eb..cbe71a99 100644
--- a/src/core/utils/GpgUtils.cpp
+++ b/src/core/utils/GpgUtils.cpp
@@ -130,8 +130,7 @@ auto SetExtensionOfOutputFile(const QString& path, GpgOperation opera,
return QFileInfo(path).path() + "/" + QFileInfo(path).completeBaseName() +
"." + new_extension;
}
-
- return path;
+ return QFileInfo(path).path() + "/" + QFileInfo(path).completeBaseName();
}
auto SetExtensionOfOutputFileForArchive(const QString& path, GpgOperation opera,