summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-25 01:38:23 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-25 01:38:23 (GMT)
commit6d70b7b4300c99ea3719cfc9378d3230b9ad38ec (patch)
treeb5c6d21082349c646f7f4470a10562db2d249e20
parente573c502f4297ffce0f71f7d17fa41517e3f4d22 (diff)
activate one stupid view at least or kate will fail only on the FIRST time ever started
-rw-r--r--kate/src/kateviewmanager.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/kate/src/kateviewmanager.cpp b/kate/src/kateviewmanager.cpp
index b64e65c..d97fde1 100644
--- a/kate/src/kateviewmanager.cpp
+++ b/kate/src/kateviewmanager.cpp
@@ -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();