aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_gpg_info/GnupgTab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_gpg_info/GnupgTab.cpp')
-rw-r--r--src/m_gpg_info/GnupgTab.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/m_gpg_info/GnupgTab.cpp b/src/m_gpg_info/GnupgTab.cpp
index 6548316..7c64cdf 100644
--- a/src/m_gpg_info/GnupgTab.cpp
+++ b/src/m_gpg_info/GnupgTab.cpp
@@ -108,14 +108,14 @@ GnupgTab::GnupgTab(QWidget* parent)
ui_->optionDetailsTable->setFocusPolicy(Qt::NoFocus);
ui_->optionDetailsTable->setAlternatingRowColors(true);
- auto future = (QThreadPool::globalInstance(), [=]() {
- if (GFModuleRetrieveRTValueOrDefaultBool(
- DUP("ui"), DUP("env.state.gnupg_info_gathering"), 0) == 1) {
- process_software_info();
- } else {
- gather_gnupg_info();
- }
- });
+ if (GFModuleRetrieveRTValueOrDefaultBool(
+ DUP("ui"), DUP("env.state.gnupg_info_gathering"), 0) == 1) {
+ process_software_info();
+
+ } else {
+ auto future = QtConcurrent::run(QThreadPool::globalInstance(),
+ [=]() { gather_gnupg_info(); });
+ }
}
void GnupgTab::process_software_info() {