aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/refactoringchanges.cpp
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2023-11-16 17:17:46 +0100
committerTim Jenssen <tim.jenssen@qt.io>2023-11-16 17:17:46 +0100
commit9f1d23df00443d600abec93f4ce5e82b679ac6e0 (patch)
tree7e977f277baee0c441d60c4b78d90534985c9900 /src/plugins/texteditor/refactoringchanges.cpp
parent3a5e0299c07184fa416295ca576806d12e581ab4 (diff)
parent245bd90a6e53421eafae6c8dfe4d71949f387eab (diff)
Merge remote-tracking branch 'origin/qds/dev'
Diffstat (limited to 'src/plugins/texteditor/refactoringchanges.cpp')
-rw-r--r--src/plugins/texteditor/refactoringchanges.cpp6
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;