diff options
author | Petar Perisin <petar.perisin@gmail.com> | 2013-11-22 05:59:08 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-11-22 05:08:35 +0100 |
commit | 390e90a07a3e20a48e946e9057ce742ebd17f907 (patch) | |
tree | 93e22b3b1ab182b4673dc1dd86184a933301dbba /src/plugins/git/gitclient.cpp | |
parent | 5036d822dec2ade4c27890f983d353fe66c64f33 (diff) | |
download | qt-creator-390e90a07a3e20a48e946e9057ce742ebd17f907.tar.gz |
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>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r-- | src/plugins/git/gitclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index b9363115f1..af2bc36bd1 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); |