Commit 0ec3f768 authored by Stefan Brüns's avatar Stefan Brüns
Browse files

[AppStream Runner] Also search when there were errors during Pool::load

The return code of the Pool::load() method is somewhat misleading, as it
returns true only if there were no errors at all. The error flag is set on the first
validation error, but the pool will contain meaningful data nevertheless.

BUG: 397531

Test Plan:
Searching for "blend"
Unfixed version:
No results are returned under "Software Center"
Fixed version:
Software Center: "Get Blender", "Get Hugin", ...

Reviewers: #plasma, #frameworks, apol

Reviewed By: apol

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision:
parent ea19f9b6
......@@ -116,7 +116,6 @@ QList<AppStream::Component> InstallerRunner::findComponentsByString(const QStrin
static bool opened = m_db.load();
if(!opened) {
qWarning() << "no appstream for you";
return QList<AppStream::Component>();
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