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:
Christian Kamm
2011-10-20 15:41:44 +02:00
parent bf80aca831
commit 26f855ca47

View File

@@ -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