summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-24 11:05:49 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-24 11:05:49 (GMT)
commitdac9f442b343cc8de427dcd9916f290b908bc5fd (patch)
treeb032edde8a933c57da158a3c95ffd964795dc964
parent0be717bce2493999df2c4e89801fc924a0e96503 (diff)
avoid empty view spaces
-rw-r--r--kate/src/kateviewmanager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/kate/src/kateviewmanager.cpp b/kate/src/kateviewmanager.cpp
index 4028213..4de57a8 100644
--- a/kate/src/kateviewmanager.cpp
+++ b/kate/src/kateviewmanager.cpp
@@ -372,6 +372,15 @@ void KateViewManager::documentCreated(KTextEditor::Document *doc)
if (!activeView()) {
activateView(doc);
}
+
+ /**
+ * check if we have any empty viewspaces and give them a view
+ */
+ Q_FOREACH(KateViewSpace * vs, m_viewSpaceList) {
+ if (!vs->currentView()) {
+ createView(activeView()->document(), vs);
+ }
+ }
}
void KateViewManager::aboutToDeleteDocuments(const QList<KTextEditor::Document *> &)