Commit cf371ffc authored by Waqar Ahmed's avatar 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
......@@ -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;
}
......
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