Commit 6505a697 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Avoid updating selection

If we move the cursor, because the selection changed, we have to stop
the timer. Otherwise the curser change will again trigger a
selection change.
This is bad for performance.

Change-Id: I16f3a530ae6518707e744efbe52e83f0e148ea22
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent fc43fb47
......@@ -115,6 +115,7 @@ void TextEditorWidget::jumpTextCursorToSelectedModelNode()
}
}
}
m_updateSelectionTimer.stop();
}
void TextEditorWidget::gotoCursorPosition(int line, int column)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment