diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-07-14 22:35:23 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-07-15 10:42:29 +0200 |
commit | 616ea2e5bbcc93b3dafabfdfbf5daf510ddf2be0 (patch) | |
tree | 08f34d63d183e6efd6d1c5d544ecc49d442d464f /src/plugins/vcsbase/vcsbaseplugin.cpp | |
parent | 5189c990aa97cc113a44143e133c48c7a31de4df (diff) | |
download | qt-creator-616ea2e5bbcc93b3dafabfdfbf5daf510ddf2be0.tar.gz |
Git: Fix opening repository log when commit editor is open
Opening a commit editor inside a submodule then executing
Local Repository Log opens the log for the supermodule.
Change-Id: I264925e0f23e2372a09a28e788174a747f5870a8
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/vcsbase/vcsbaseplugin.cpp')
-rw-r--r-- | src/plugins/vcsbase/vcsbaseplugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/vcsbase/vcsbaseplugin.cpp b/src/plugins/vcsbase/vcsbaseplugin.cpp index 5a4c16ba4c..479e5823b5 100644 --- a/src/plugins/vcsbase/vcsbaseplugin.cpp +++ b/src/plugins/vcsbase/vcsbaseplugin.cpp @@ -237,9 +237,8 @@ void StateListener::slotStateChanged() state.currentFile.clear(); } else { state.currentFile = currentDocument->filePath(); - if (state.currentFile.isEmpty()) { + if (state.currentFile.isEmpty() || currentDocument->isTemporary()) state.currentFile = VcsBasePlugin::source(currentDocument); - } } QScopedPointer<QFileInfo> currentFileInfo; // Instantiate QFileInfo only once if required. if (!state.currentFile.isEmpty()) { |