forked from qt-creator/qt-creator
Fix build
Change-Id: I76c03a364a8b3d9734ced3c948997dcfb5c0e685 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -176,7 +176,7 @@ void DiffEditorWidgetController::patch(bool revert, int fileIndex, int chunkInde
|
|||||||
|
|
||||||
FileChangeBlocker fileChangeBlocker(absFilePath);
|
FileChangeBlocker fileChangeBlocker(absFilePath);
|
||||||
if (PatchTool::runPatch(EditorManager::defaultTextCodec()->fromUnicode(patch),
|
if (PatchTool::runPatch(EditorManager::defaultTextCodec()->fromUnicode(patch),
|
||||||
workingDirectory, strip, revert))
|
FilePath::fromString(workingDirectory), strip, revert))
|
||||||
m_document->reload();
|
m_document->reload();
|
||||||
} else { // PatchEditor
|
} else { // PatchEditor
|
||||||
auto textDocument = qobject_cast<TextEditor::TextDocument *>(
|
auto textDocument = qobject_cast<TextEditor::TextDocument *>(
|
||||||
|
Reference in New Issue
Block a user