Commit 34692eea authored by Friedemann Kleint's avatar Friedemann Kleint

tr()-Fixes in Diff-Editor: Capitalization, add comment.

Change-Id: Ib6b1c15e6a8d3452e3d9d8dd769f500965f08473
Reviewed-by: default avatarJarek Kobus <>
Reviewed-by: default avatarLeena Miettinen <>
parent ef6a9d06
......@@ -306,19 +306,20 @@ void DiffEditorPlugin::extensionsInitialized()
void DiffEditorPlugin::diff()
QString fileName1 = QFileDialog::getOpenFileName(0,
tr("Select the first file for diff"),
tr("Select First File for Diff"),
if (fileName1.isNull())
QString fileName2 = QFileDialog::getOpenFileName(0,
tr("Select the second file for diff"),
tr("Select Second File for Diff"),
if (fileName2.isNull())
const Core::Id editorId = Constants::DIFF_EDITOR_ID;
//: Editor title
QString title = tr("Diff \"%1\", \"%2\"").arg(fileName1).arg(fileName2);
Core::IEditor *outputEditor = Core::EditorManager::openEditorWithContents(editorId, &title, QString());
Core::EditorManager::activateEditor(outputEditor, Core::EditorManager::ModeSwitch);
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