Commit 979fe01b authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix crash when there is only one view and a widget

parent 7317a085
Pipeline #89300 passed with stage
in 3 minutes and 46 seconds
......@@ -364,7 +364,7 @@ void KateViewManager::documentCreated(KTextEditor::Document *doc)
* check if we have any empty viewspaces and give them a view
for (KateViewSpace *vs : m_viewSpaceList) {
if (!vs->currentView()) {
if (!vs->currentView() && !vs->currentWidget()) {
createView(view->document(), vs);
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