diff --git a/src/plugins/texteditor/refactoringchanges.cpp b/src/plugins/texteditor/refactoringchanges.cpp index 017474fe66d..7dfe6f4c662 100644 --- a/src/plugins/texteditor/refactoringchanges.cpp +++ b/src/plugins/texteditor/refactoringchanges.cpp @@ -280,7 +280,7 @@ bool RefactoringFile::apply() fileChanged(); if (withUnmodifiedEditor && EditorManager::autoSaveAfterRefactoring()) - m_editor->textDocument()->save(m_filePath, false); + DocumentManager::saveDocument(m_editor->textDocument(), m_filePath); } }