summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-22 23:11:18 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-22 23:11:18 (GMT)
commitac9d02b0267ebbfa85c10cbd624ff67901c9b636 (patch)
tree3d010f4dc50f8219c91e47649904f359594b7462
parent9830288878e756219dbb41d16ae13b2fc123299b (diff)
for delayed update, disable repaints
-rw-r--r--kate/app/kateviewmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/kate/app/kateviewmanager.cpp b/kate/app/kateviewmanager.cpp
index c1c076c..2db7922 100644
--- a/kate/app/kateviewmanager.cpp
+++ b/kate/app/kateviewmanager.cpp
@@ -642,6 +642,8 @@ void KateViewManager::closeViews(KTextEditor::Document *doc)
deleteView( closeList.takeFirst());
if (m_blockViewCreationAndActivation) return;
+
+ setUpdatesEnabled(false);
QTimer::singleShot(0, this, SLOT(slotDelayedViewChanged()));
}
@@ -658,6 +660,8 @@ void KateViewManager::slotDelayedViewChanged ()
}
emit viewChanged (newActiveView);
+
+ setUpdatesEnabled(true);
}
void KateViewManager::splitViewSpace( KateViewSpace* vs, // = 0