Commit 9cf581b9 authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Fix broken signal-slot connection

The private slot in the header is probably never declared because the
define in the #ifdef isn't defined when moc parses the file. In any case,
there's no reason to keep using an old-style connect.

GnuPG-bug-id: 6163
parent 60de9b8c
Pipeline #222916 passed with stage
in 4 minutes and 19 seconds
......@@ -934,8 +934,9 @@ void ImportCertificatesCommand::Private::startImport(GpgME::Protocol protocol, [
keyCacheAutoRefreshSuspension = KeyCache::mutableInstance()->suspendAutoRefresh();
std::vector<QMetaObject::Connection> connections = {
connect(job.get(), SIGNAL(result(GpgME::ImportResult)),
q, SLOT(importResult(GpgME::ImportResult))),
connect(job.get(), &AbstractImportJob::result, q, [this](const GpgME::ImportResult &result) {
importResult(result);
}),
connect(job.get(), &Job::progress,
q, &Command::progress)
};
......
......@@ -30,10 +30,6 @@ protected:
inline Private *d_func();
inline const Private *d_func() const;
#ifdef QGPGME_SUPPORTS_RECEIVING_KEYS_BY_KEY_ID
Q_PRIVATE_SLOT(d_func(), void importResult(GpgME::ImportResult))
#endif
protected:
explicit ImportCertificatesCommand(Private *pp);
explicit ImportCertificatesCommand(QAbstractItemView *view, Private *pp);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment