aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-05-11 12:56:41 +0000
committersaturneric <[email protected]>2024-05-11 12:56:41 +0000
commit0c4eae9b24abe4eb8e86641c8ffdaa07e734b742 (patch)
treedf2e12c524b69d777d666a49fd92ccbb836f59fc
parentfix: rewrite function signature SlotMkdirBelowAtSelectedItem (diff)
downloadGpgFrontend-0c4eae9b24abe4eb8e86641c8ffdaa07e734b742.tar.gz
GpgFrontend-0c4eae9b24abe4eb8e86641c8ffdaa07e734b742.zip
fix: use &(exec_contexts.first()) instead of exec_contexts.constData() at qt5 env
-rw-r--r--src/module/mods/gpg_info/GnuPGInfoGatheringModule.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/module/mods/gpg_info/GnuPGInfoGatheringModule.cpp b/src/module/mods/gpg_info/GnuPGInfoGatheringModule.cpp
index 949f7287..79d148b6 100644
--- a/src/module/mods/gpg_info/GnuPGInfoGatheringModule.cpp
+++ b/src/module/mods/gpg_info/GnuPGInfoGatheringModule.cpp
@@ -215,8 +215,11 @@ auto GFExecuteModule(GFModuleEvent *event) -> int {
}
GFExecuteCommandBatchSync(static_cast<int32_t>(exec_contexts.size()),
+#ifdef QT5_BUILD
+ &(exec_contexts.first()));
+#else
exec_contexts.constData());
-
+#endif
GFModuleUpsertRTValueBool(GFGetModuleID(),
GFModuleStrDup("gnupg.gathering_done"), 1);