Commit e25dc5bd authored by Stefano Crocco's avatar Stefano Crocco
Browse files

Fix check for AllowAsDefault

parent dcf0163a
......@@ -132,15 +132,15 @@ KonqViewFactory KonqFactory::createView(const QString &serviceType,
// with khtml or another Browser/View part in case of an error...
} else {
for (const KPluginMetaData &md : offers) {
// Allowed as default ?
if (!md.value(QStringLiteral("X-KDE-BrowserView-AllowAsDefault"), true)) {
// Allowed as default? Assume it is, unless explicitly stated otherwise
if (md.value(QStringLiteral("X-KDE-BrowserView-AllowAsDefault"), true)) {
viewFactory = tryLoadingService(md);
if (!viewFactory.isNull()) {
service = md;
break;
}
} else {
qCDebug(KONQUEROR_LOG) << "Not allowed as default " << service.name();
qCDebug(KONQUEROR_LOG) << "Not allowed as default " << md.name();
}
}
}
......
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