Commit 32e018c0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use non deprecated signal

parent f32965ea
...@@ -562,7 +562,8 @@ ResultsStream * KNSBackend::findResourceByPackageName(const QUrl& search) ...@@ -562,7 +562,8 @@ ResultsStream * KNSBackend::findResourceByPackageName(const QUrl& search)
m_responsePending = true; m_responsePending = true;
m_engine->fetchEntryById(entryid); m_engine->fetchEntryById(entryid);
m_onePage = false; m_onePage = false;
connect(m_engine, &KNSCore::Engine::signalError, stream, &ResultsStream::finish);
connect(m_engine, &KNSCore::Engine::signalErrorCode, stream, &ResultsStream::finish);
connect(m_engine, &KNSCore::Engine::signalEntryDetailsLoaded, stream, [this, stream, entryid, providerid](const KNSCore::EntryInternal &entry) { connect(m_engine, &KNSCore::Engine::signalEntryDetailsLoaded, stream, [this, stream, entryid, providerid](const KNSCore::EntryInternal &entry) {
if (entry.uniqueId() == entryid && providerid == QUrl(entry.providerId()).host()) { if (entry.uniqueId() == entryid && providerid == QUrl(entry.providerId()).host()) {
Q_EMIT stream->resourcesFound({resourceForEntry(entry)}); Q_EMIT stream->resourcesFound({resourceForEntry(entry)});
......
Markdown is supported
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