forked from qt-creator/qt-creator
Core: filepathify expected document changes
Change-Id: Ifa9341e55c79459db9ecef3c441da9b2816695bf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -379,7 +379,7 @@ bool RefactoringFile::apply()
|
||||
QTC_ASSERT(!m_filePath.isEmpty(), return false);
|
||||
QString error;
|
||||
// suppress "file has changed" warnings if the file is open in a read-only editor
|
||||
Core::FileChangeBlocker block(m_filePath.toString());
|
||||
Core::FileChangeBlocker block(m_filePath);
|
||||
if (!m_textFileFormat.writeFile(m_filePath,
|
||||
doc->toPlainText(),
|
||||
&error)) {
|
||||
|
||||
Reference in New Issue
Block a user