From 390e90a07a3e20a48e946e9057ce742ebd17f907 Mon Sep 17 00:00:00 2001 From: Petar Perisin <petar.perisin@gmail.com> Date: Fri, 22 Nov 2013 05:59:08 +0200 Subject: [PATCH] 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 <orgads@gmail.com> --- src/plugins/git/gitclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index b9363115f17..af2bc36bd11 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -1443,7 +1443,7 @@ void GitClient::show(const QString &source, const QString &id, GitDiffHandler *handler = new GitDiffHandler(diffEditor, gitBinaryPath(), - workingDirectory, + findRepositoryForDirectory(workingDirectory), processEnvironment(), settings()->intValue(GitSettings::timeoutKey)); handler->show(id); -- GitLab