Commit 44f9e367 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Fix double-clicking a diff chunk in Show invoked from Blame

Change-Id: I31ba36245b8b62b9d1e3c4a9125dec5ce6610766
Reviewed-by: default avatarTobias Hunger <>
parent f2937dc4
......@@ -1129,8 +1129,11 @@ void GitClient::show(const QString &source, const QString &id, const QString &na
const QString title = tr("Git Show \"%1\"").arg(name.isEmpty() ? id : name);
const QFileInfo sourceFi(source);
const QString workingDirectory = sourceFi.isDir()
QString workingDirectory = sourceFi.isDir()
? sourceFi.absoluteFilePath() : sourceFi.absolutePath();
const QString repoDirectory = VcsManager::findTopLevelForDirectory(workingDirectory);
if (!repoDirectory.isEmpty())
workingDirectory = repoDirectory;
const QString documentId = QLatin1String("Show:") + id;
DiffEditor::DiffEditorDocument *diffEditorDocument =
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