Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Konqueror
Commits
e25dc5bd
Commit
e25dc5bd
authored
Jun 26, 2022
by
Stefano Crocco
Browse files
Fix check for AllowAsDefault
parent
dcf0163a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/konqfactory.cpp
View file @
e25dc5bd
...
...
@@ -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
();
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment