diff options
author | Tim Jenssen <tim.jenssen@qt.io> | 2023-11-16 17:17:46 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2023-11-16 17:17:46 +0100 |
commit | 9f1d23df00443d600abec93f4ce5e82b679ac6e0 (patch) | |
tree | 7e977f277baee0c441d60c4b78d90534985c9900 /src/plugins/texteditor/refactoringchanges.cpp | |
parent | 3a5e0299c07184fa416295ca576806d12e581ab4 (diff) | |
parent | 245bd90a6e53421eafae6c8dfe4d71949f387eab (diff) |
Merge remote-tracking branch 'origin/qds/dev'
Change-Id: Ic852bc9977d0292fb6cd93a319f4bfdebb22a1b0
Diffstat (limited to 'src/plugins/texteditor/refactoringchanges.cpp')
-rw-r--r-- | src/plugins/texteditor/refactoringchanges.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/texteditor/refactoringchanges.cpp b/src/plugins/texteditor/refactoringchanges.cpp index 8a14376f87..e9016d3cb6 100644 --- a/src/plugins/texteditor/refactoringchanges.cpp +++ b/src/plugins/texteditor/refactoringchanges.cpp @@ -340,9 +340,9 @@ bool RefactoringFile::apply() QString error; // suppress "file has changed" warnings if the file is open in a read-only editor Core::FileChangeBlocker block(m_filePath); - if (!m_textFileFormat.writeFile(m_filePath, - doc->toPlainText(), - &error)) { + if (m_textFileFormat.writeFile(m_filePath, doc->toPlainText(), &error)) { + Core::DocumentManager::notifyFilesChangedInternally({m_filePath}); + } else { qWarning() << "Could not apply changes to" << m_filePath << ". Error: " << error; result = false; |