Commit 185fe315 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨 Committed by Eric Armbruster
Browse files

fix crash on split & reactive settings without view

parent a8c1adf4
......@@ -925,10 +925,6 @@ void KateMainWindow::slotConfigure()
bool KateMainWindow::showPluginConfigPage(KTextEditor::Plugin *configpageinterface, int id)
{
if (!m_viewManager->activeView()) {
return false;
}
KateConfigDialog *dlg = new KateConfigDialog(this);
if (configpageinterface) {
dlg->showAppPluginPage(configpageinterface, id);
......
......@@ -1024,10 +1024,12 @@ void KateViewManager::splitViewSpace(KateViewSpace *vs, // = 0
vsNew->setActive(true);
vsNew->show();
createView(activeView()->document());
if (auto v = vs->currentView()) {
createView(v->document());
if (moveDocument) {
vs->closeDocument(vs->currentView()->document());
if (moveDocument) {
vs->closeDocument(v->document());
}
}
updateViewSpaceActions();
......
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