Commit 472a7613 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

packagekit: don't show where the package will be installed

As a source we were using the distro name which is not entirely true for
local files.

BUG: 400044
parent 74406150
......@@ -39,6 +39,7 @@ class LocalFilePKResource : public PackageKitResource
void fetchDetails() override;
bool canExecute() const override { return !m_exec.isEmpty(); }
void invokeApplication() const override;
QString displayOrigin() const override { return origin(); }
private:
AbstractResource::State m_state = AbstractResource::None;
......
......@@ -157,7 +157,7 @@ class DISCOVERCOMMON_EXPORT AbstractResource : public QObject
virtual QString longDescription() = 0;
virtual QString origin() const = 0;
QString displayOrigin() const;
virtual QString displayOrigin() const;
virtual QString section() = 0;
virtual QString author() const = 0;
......
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