aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-24 16:32:33 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-24 16:32:40 (GMT)
commit32d900bf9de6e6ff9ba791dc580fe11ef7786984 (patch)
tree591624af97d78a0839326e0febed6b5838b8d2a2
parenta0524345f24ade23b79240f4a496385887b5b9aa (diff)
remove even more flicker
-rw-r--r--kate/src/katedocmanager.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/kate/src/katedocmanager.cpp b/kate/src/katedocmanager.cpp
index ec6e92e..c964b7d 100644
--- a/kate/src/katedocmanager.cpp
+++ b/kate/src/katedocmanager.cpp
@@ -260,13 +260,16 @@ bool KateDocManager::closeDocuments(const QList<KTextEditor::Document *> documen
last++;
}
- emit documentsDeleted(documents.mid(last));
-
- // never ever empty the whole document list
+ /**
+ * never ever empty the whole document list
+ * do this before documentsDeleted is emited, to have no flicker
+ */
if (m_docList.isEmpty()) {
createDoc();
}
+ emit documentsDeleted(documents.mid(last));
+
return success;
}