From f1932cffa48083c0c705c1e96ec21e039bcf56a7 Mon Sep 17 00:00:00 2001
From: mae <qt-info@nokia.com>
Date: Tue, 19 Jan 2010 15:56:33 +0100
Subject: [PATCH] update properly on text editor overlay visibility changes

---
 src/plugins/texteditor/texteditoroverlay.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/texteditor/texteditoroverlay.cpp b/src/plugins/texteditor/texteditoroverlay.cpp
index dfc7d32f5b8..96331e4ae4a 100644
--- a/src/plugins/texteditor/texteditoroverlay.cpp
+++ b/src/plugins/texteditor/texteditoroverlay.cpp
@@ -57,8 +57,8 @@ void TextEditorOverlay::setVisible(bool b)
 {
     if (m_visible == b)
         return;
-    update();
     m_visible = b;
+    m_viewport->update();
 }
 
 void TextEditorOverlay::clear()
-- 
GitLab