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
Utilities
Kate
Commits
cf371ffc
Commit
cf371ffc
authored
Oct 19, 2022
by
Waqar Ahmed
Browse files
Dont call showView() from createView
createView should just create the view, nothing more
parent
a9e5f54a
Pipeline
#250972
passed with stage
in 8 minutes and 5 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
apps/lib/kateviewspace.cpp
View file @
cf371ffc
...
...
@@ -329,7 +329,7 @@ KTextEditor::View *KateViewSpace::createView(KTextEditor::Document *doc)
addPositionToHistory
(
view
->
document
()
->
url
(),
newPosition
);
});
// register document
, it is shown below through showView() then
// register document
registerDocument
(
doc
);
// view shall still be not registered
...
...
@@ -338,7 +338,6 @@ KTextEditor::View *KateViewSpace::createView(KTextEditor::Document *doc)
// insert View into stack
stack
->
addWidget
(
v
);
m_docToView
[
doc
]
=
v
;
showView
(
v
);
return
v
;
}
...
...
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