Commit ccbc7f9e authored by Christian Kandeler's avatar Christian Kandeler

DiffEditor: Silence warning about unused variable.

Change-Id: I18a6dd021bb29ca5eaa7727213c80458d903ee6c
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 0996cf0e
......@@ -175,9 +175,8 @@ void DiffEditorPlugin::diff()
if (!document)
return;
DiffEditorController *controller = DiffEditorController::controller(document);
if (!controller)
controller = new FileDiffController(document, fileName1, fileName2);
if (!DiffEditorController::controller(document))
new FileDiffController(document, fileName1, fileName2);
Core::EditorManager::activateEditorForDocument(document);
document->reload();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment