forked from qt-creator/qt-creator
DiffEditor: Silence warning about unused variable.
Change-Id: I18a6dd021bb29ca5eaa7727213c80458d903ee6c Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -175,9 +175,8 @@ void DiffEditorPlugin::diff()
|
|||||||
if (!document)
|
if (!document)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DiffEditorController *controller = DiffEditorController::controller(document);
|
if (!DiffEditorController::controller(document))
|
||||||
if (!controller)
|
new FileDiffController(document, fileName1, fileName2);
|
||||||
controller = new FileDiffController(document, fileName1, fileName2);
|
|
||||||
Core::EditorManager::activateEditorForDocument(document);
|
Core::EditorManager::activateEditorForDocument(document);
|
||||||
document->reload();
|
document->reload();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user