diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-10-21 17:45:48 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-10-22 12:40:33 +0000 |
commit | 5a8501ffafd24725106b687c8c658354bb370f26 (patch) | |
tree | 51f4ef22e94a5e70efa06d87c3baf5bed4331213 /src/plugins/autotest/qtest/qttestvisitors.cpp | |
parent | baf25e4cdbfb7f58809f72aea5165c14a50eafde (diff) |
CppEditor: Fix over-eager undo
We must not call QTextDocument::joinPreviousEditBlock() unless the
symbol name was actually edited, i.e. key presses that don't change the
content do not count. Otherwise, QTextDocument will merge the renaming
action with the previous change to the document in its undo stack.
Fixes: QTCREATORBUG-16350
Change-Id: Ie5a3a6a2f5a15caa038bf111673d4c32077fe4ba
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/qtest/qttestvisitors.cpp')
0 files changed, 0 insertions, 0 deletions