Skip to content

Commit

Permalink
Use queued invoke (#1304)
Browse files Browse the repository at this point in the history
IB-8197

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Nov 25, 2024
1 parent 4729b35 commit 000ed65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class DigidocConf final: public digidoc::XmlConfCurrent
static std::vector<digidoc::X509Cert> toCerts(QLatin1String key)
{
std::vector<digidoc::X509Cert> certs;
for(const auto &cert: Application::confValue(key).toArray())
for(const auto list = Application::confValue(key).toArray(); auto cert: list)
{
if(QByteArray der = fromBase64(cert); !der.isEmpty())
certs.emplace_back((const unsigned char*)der.constData(), size_t(der.size()));
Expand Down Expand Up @@ -400,7 +400,7 @@ Application::Application( int &argc, char **argv )
});
}
#endif
});
}, Qt::QueuedConnection);
#endif

qRegisterMetaType<TokenData>("TokenData");
Expand Down

0 comments on commit 000ed65

Please sign in to comment.