Commit 390e90a0 authored by Petar Perisin's avatar Petar Perisin Committed by Orgad Shaneh

Git: Fix ability to open file on double click

since show can be called with file name as source, we get its
repository as source in diffhandler

Task-number: QTCREATORBUG-10780
Change-Id: Ib0076c583eb5d43e66deb68adfdff1d25fc5a798
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 5036d822
...@@ -1443,7 +1443,7 @@ void GitClient::show(const QString &source, const QString &id, ...@@ -1443,7 +1443,7 @@ void GitClient::show(const QString &source, const QString &id,
GitDiffHandler *handler = new GitDiffHandler(diffEditor, GitDiffHandler *handler = new GitDiffHandler(diffEditor,
gitBinaryPath(), gitBinaryPath(),
workingDirectory, findRepositoryForDirectory(workingDirectory),
processEnvironment(), processEnvironment(),
settings()->intValue(GitSettings::timeoutKey)); settings()->intValue(GitSettings::timeoutKey));
handler->show(id); handler->show(id);
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