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
Utilities
Kate
Commits
929202c2
Commit
929202c2
authored
Mar 11, 2021
by
Marcell Fülöp
Browse files
Make sure we detect query string here as doc->url() may not be accessible
parent
cd0a1339
Changes
1
Hide whitespace changes
Inline
Side-by-side
kate/kateviewspace.cpp
View file @
929202c2
...
...
@@ -631,7 +631,10 @@ void KateViewSpace::restoreConfig(KateViewManager *viewMan, const KConfigBase *c
// avoid empty view space
if
(
m_docToView
.
isEmpty
())
{
auto
*
doc
=
KateApp
::
self
()
->
documentManager
()
->
documentList
().
first
();
KateApp
::
self
()
->
documentManager
()
->
documentInfo
(
doc
)
->
doPostLoadOperations
=
!
doc
->
url
().
isLocalFile
()
&&
(
KateApp
::
self
()
->
hasCursorInArgs
()
||
doc
->
url
().
hasQuery
());
if
(
!
fn
.
isEmpty
())
{
QUrl
url
(
fn
);
KateApp
::
self
()
->
documentManager
()
->
documentInfo
(
doc
)
->
doPostLoadOperations
=
!
url
.
isLocalFile
()
&&
(
KateApp
::
self
()
->
hasCursorInArgs
()
||
url
.
hasQuery
());
}
viewMan
->
createView
(
doc
,
this
);
}
...
...
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