diff options
author | saturneric <[email protected]> | 2024-11-16 18:29:53 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-16 22:02:31 +0000 |
commit | a4e6258497d773179c9ff0ecb95826240723eff3 (patch) | |
tree | 675b5cbea9a80b849e07bf9665b79c4118a83ddc /src/core/function | |
parent | fix: develop build on ubuntu latest image (diff) | |
download | GpgFrontend-a4e6258497d773179c9ff0ecb95826240723eff3.tar.gz GpgFrontend-a4e6258497d773179c9ff0ecb95826240723eff3.zip |
fix: setup gitea develop regularly build and test process
Diffstat (limited to 'src/core/function')
-rw-r--r-- | src/core/function/gpg/GpgKeyOpera.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/function/gpg/GpgKeyOpera.cpp b/src/core/function/gpg/GpgKeyOpera.cpp index f5027d4c..6898b355 100644 --- a/src/core/function/gpg/GpgKeyOpera.cpp +++ b/src/core/function/gpg/GpgKeyOpera.cpp @@ -110,9 +110,15 @@ void GpgKeyOpera::GenerateRevokeCert(const GpgKey& key, << "text:" << revocation_reason_text; // dealing with reason text +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 4) auto reason_text_lines = GpgFrontend::SecureCreateSharedObject<QList<QString>>( revocation_reason_text.split('\n', Qt::SkipEmptyParts).toVector()); +#else + auto reason_text_lines = + GpgFrontend::SecureCreateSharedObject<QVector<QString>>( + revocation_reason_text.split('\n', Qt::SkipEmptyParts).toVector()); +#endif const auto app_path = Module::RetrieveRTValueTypedOrDefault<>( "core", "gpgme.ctx.app_path", QString{}); |