Commit 6d70b7b4 authored by Christoph Cullmann's avatar Christoph Cullmann

activate one stupid view at least or kate will fail only on the FIRST time ever started

parent e573c502
......@@ -987,6 +987,14 @@ void KateViewManager::restoreViewConfiguration(const KConfigGroup &config)
addWidget(vs);
vs->setActive(true);
m_viewSpaceList.append(vs);
/**
* activate at least one document!
*/
activateView(KateApp::self()->documentManager()->documentList().last());
if (!vs->currentView()) {
createView(activeView()->document(), vs);
}
}
updateViewSpaceActions();
......
Markdown is supported
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