Skip to content
GitLab
Menu
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
e6044eb2
Commit
e6044eb2
authored
Oct 17, 2021
by
Stefano Crocco
Browse files
Ensure the view exists
parent
121d2ef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/konqrun.cpp
View file @
e6044eb2
...
...
@@ -317,7 +317,7 @@ bool KonqRun::usingWebEngine() const
//If the current part can't display html files, it will never be a webengine part, so it doesn't
//tell anything about user configuration. In this case, always check the preferred part.
KParts
::
ReadOnlyPart
*
part
=
m_pView
?
m_pView
->
part
()
:
nullptr
;
if
(
m_pView
->
isWebBrowsingPart
())
{
if
(
m_pView
&&
m_pView
->
isWebBrowsingPart
())
{
return
part
->
componentName
()
==
"webenginepart"
;
}
else
{
QVector
<
KPluginMetaData
>
parts
=
KParts
::
PartLoader
::
partsForMimeType
(
"text/html"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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