aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/utils/CommonUtils.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-18 15:54:54 +0000
committersaturneric <[email protected]>2025-04-18 15:54:54 +0000
commit8f14fdc7325cb9635e3d92873baaa58f430fca01 (patch)
tree323f462c283ac2151a23cfffd08d52a678c06541 /src/core/utils/CommonUtils.cpp
parentfix: add missing libGLESv2.dll on windows platform (diff)
downloadGpgFrontend-8f14fdc7325cb9635e3d92873baaa58f430fca01.tar.gz
GpgFrontend-8f14fdc7325cb9635e3d92873baaa58f430fca01.zip
feat: add more info check
Diffstat (limited to 'src/core/utils/CommonUtils.cpp')
-rw-r--r--src/core/utils/CommonUtils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/utils/CommonUtils.cpp b/src/core/utils/CommonUtils.cpp
index ce36c71e..eec5deef 100644
--- a/src/core/utils/CommonUtils.cpp
+++ b/src/core/utils/CommonUtils.cpp
@@ -74,6 +74,11 @@ auto GFCompareSoftwareVersion(const QString& a, const QString& b) -> int {
return 0;
}
+auto GFSoftwareVersionGreaterThan(const QString& a, const QString& b) -> bool {
+ if (a.isEmpty()) return false;
+ return GFCompareSoftwareVersion(a, b) > 0;
+}
+
auto GFStrDup(const QString& s) -> char* {
if (s.isEmpty()) return nullptr;