forked from qt-creator/qt-creator
RefactoringFile: Use editor's cursor, if possible.
This fixes 'undo' with quick fixes not preserving the original cursor position. Change-Id: If6475a5afab3e806ea713c769f730c6ffd773298 Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -339,7 +339,7 @@ void RefactoringFile::apply()
|
||||
return;
|
||||
|
||||
{
|
||||
QTextCursor c(doc);
|
||||
QTextCursor c = cursor();
|
||||
c.beginEditBlock();
|
||||
|
||||
// build indent selections now, applying the changeset will change locations
|
||||
|
||||
Reference in New Issue
Block a user