aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r--src/ui/UserInterfaceUtils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp
index 0f462cf7..0dfe9867 100644
--- a/src/ui/UserInterfaceUtils.cpp
+++ b/src/ui/UserInterfaceUtils.cpp
@@ -472,6 +472,7 @@ void CommonUtils::slot_update_key_status() {
[](DataObjectPtr) -> int {
// flush key cache for all GpgKeyGetter Intances.
for (const auto &channel_id : GpgKeyGetter::GetAllChannelId()) {
+ LOG_D() << "refreshing key database at channel: " << channel_id;
GpgKeyGetter::GetInstance(channel_id).FlushKeyCache();
}
return 0;
@@ -481,8 +482,9 @@ void CommonUtils::slot_update_key_status() {
&CommonUtils::SignalKeyDatabaseRefreshDone);
// post the task to the default task runner
- Thread::TaskRunnerGetter::GetInstance().GetTaskRunner()->PostTask(
- refresh_task);
+ Thread::TaskRunnerGetter::GetInstance()
+ .GetTaskRunner(Thread::TaskRunnerGetter::kTaskRunnerType_GPG)
+ ->PostTask(refresh_task);
}
void CommonUtils::slot_update_key_from_server_finished(