Changeset View
Changeset View
Standalone View
Standalone View
src/core/engine.cpp
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Line(s) | 102 | { | |||
---|---|---|---|---|---|
127 | m_categories = group.readEntry("Categories", QStringList()); | 127 | m_categories = group.readEntry("Categories", QStringList()); | ||
128 | m_adoptionCommand = group.readEntry("AdoptionCommand", QString()); | 128 | m_adoptionCommand = group.readEntry("AdoptionCommand", QString()); | ||
129 | 129 | | |||
130 | qCDebug(KNEWSTUFFCORE) << "Categories: " << m_categories; | 130 | qCDebug(KNEWSTUFFCORE) << "Categories: " << m_categories; | ||
131 | m_providerFileUrl = group.readEntry("ProvidersUrl", QString()); | 131 | m_providerFileUrl = group.readEntry("ProvidersUrl", QString()); | ||
132 | 132 | | |||
133 | d->tagFilter = group.readEntry("TagFilter", QStringList()); | 133 | d->tagFilter = group.readEntry("TagFilter", QStringList()); | ||
134 | if (d->tagFilter.isEmpty()) { | 134 | if (d->tagFilter.isEmpty()) { | ||
135 | d->tagFilter.append(QStringLiteral("ghns_exclude!=1")); | 135 | d->tagFilter.append(QStringLiteral("ghns_excluded!=1")); | ||
136 | } | 136 | } | ||
137 | d->downloadTagFilter = group.readEntry("DownloadTagFilter", QStringList()); | 137 | d->downloadTagFilter = group.readEntry("DownloadTagFilter", QStringList()); | ||
138 | 138 | | |||
139 | const QString configFileName = QFileInfo(QDir::isAbsolutePath(configfile) ? configfile : QStandardPaths::locate(QStandardPaths::GenericConfigLocation, configfile)).baseName(); | 139 | const QString configFileName = QFileInfo(QDir::isAbsolutePath(configfile) ? configfile : QStandardPaths::locate(QStandardPaths::GenericConfigLocation, configfile)).baseName(); | ||
140 | // let installation read install specific config | 140 | // let installation read install specific config | ||
141 | if (!m_installation->readConfig(group)) { | 141 | if (!m_installation->readConfig(group)) { | ||
142 | return false; | 142 | return false; | ||
143 | } | 143 | } | ||
▲ Show 20 Lines • Show All 583 Lines • Show Last 20 Lines |