D19340: Search new knsrc locations

Nathaniel Graham noreply at phabricator.kde.org
Wed Mar 13 16:02:39 GMT 2019


ngraham requested changes to this revision.
ngraham added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> KNSBackend.cpp:68
>              QVector<AbstractResourcesBackend*> ret;
> -            for (const QString &path: QStandardPaths::standardLocations(QStandardPaths::GenericConfigLocation)) {
> +#if KNEWSTUFFCORE_VERSION_MAJOR==5 && KNEWSTUFFCORE_VERSION_MAJOR>=56
> +            QStringList locations = KNSCore::Engine::configSearchLocations();

Needs to be 57 now (we'll get all of this landed soon, not to worry!)

Also, should the second one be `KNEWSTUFFCORE_VERSION_MINOR`? Seems weird that both conditions are checking the major version.

REPOSITORY
  R134 Discover Software Store

REVISION DETAIL
  https://phabricator.kde.org/D19340

To: leinir, #discover_software_store, apol, ngraham
Cc: plasma-devel, #discover_software_store, jraleigh, bam, GB_2, ragreen, ixoos, Pitel, ZrenBot, James, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190313/6da1e247/attachment.html>


More information about the Plasma-devel mailing list