[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ktexteditor] src/document: remove some suspicious setUpdatesEnabled calls
From:       Christoph Cullmann <cullmann () kde ! org>
Date:       2016-01-31 21:11:56
Message-ID: E1aPzHo-0007J6-2M () scm ! kde ! org
[Download RAW message or body]

Git commit 1525fd5ff7c9bb890e4deac5465876bc1cbaa7f3 by Christoph Cullmann.
Committed on 31/01/2016 at 21:11.
Pushed by cullmann into branch 'master'.

remove some suspicious setUpdatesEnabled calls
CCBUG: 353088

M  +0    -6    src/document/katedocument.cpp

http://commits.kde.org/ktexteditor/1525fd5ff7c9bb890e4deac5465876bc1cbaa7f3

diff --git a/src/document/katedocument.cpp b/src/document/katedocument.cpp
index ef96a17..9159a85 100644
--- a/src/document/katedocument.cpp
+++ b/src/document/katedocument.cpp
@@ -2251,11 +2251,6 @@ bool KTextEditor::DocumentPrivate::openFile()
 
     bool success = m_buffer->openFile(localFilePath(), (m_reloading && \
m_userSetEncodingForNextReload));  
-    // disable view updates
-    foreach (KTextEditor::ViewPrivate *view, m_views) {
-        view->setUpdatesEnabled(false);
-    }
-
     //
     // yeah, success
     // read variables
@@ -2270,7 +2265,6 @@ bool KTextEditor::DocumentPrivate::openFile()
     foreach (KTextEditor::ViewPrivate *view, m_views) {
         // This is needed here because inserting the text moves the view's start \
position (it is a MovingCursor)  view->setCursorPosition(KTextEditor::Cursor());
-        view->setUpdatesEnabled(true);
         view->updateView(true);
     }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic