Commit ccbc7f9e authored by Christian Kandeler's avatar Christian Kandeler

DiffEditor: Silence warning about unused variable.

Change-Id: I18a6dd021bb29ca5eaa7727213c80458d903ee6c
Reviewed-by: default avatarTobias Hunger <>
parent 0996cf0e
...@@ -175,9 +175,8 @@ void DiffEditorPlugin::diff() ...@@ -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();
} }
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