Reduces editor updates in certain cases

Done-with: Roberto Raggi
This commit is contained in:
mae
2010-08-06 21:55:48 +02:00
parent a24ac12af7
commit ec1d555a3b
2 changed files with 17 additions and 38 deletions

View File

@@ -59,7 +59,8 @@ void TextEditorOverlay::setVisible(bool b)
if (m_visible == b)
return;
m_visible = b;
m_viewport->update();
if (!m_selections.isEmpty())
m_viewport->update();
}
void TextEditorOverlay::clear()