summaryrefslogtreecommitdiff
path: root/src/plugins/git/gitclient.cpp
diff options
context:
space:
mode:
authorjkobus <jaroslaw.kobus@digia.com>2013-09-23 14:45:28 +0200
committerJarek Kobus <jaroslaw.kobus@digia.com>2013-09-24 09:12:23 +0200
commitaa32c2be87f7192e03f06b8b5223100354e269a6 (patch)
tree3a3136a26f27b991d8ed0bdbb824898516c15ecf /src/plugins/git/gitclient.cpp
parentfc7399bdf56a49c3bd06c34cd8c2ceb90f3c21c8 (diff)
downloadqt-creator-aa32c2be87f7192e03f06b8b5223100354e269a6.tar.gz
Close the other diff view when switching between diff views
Task-number: QTCREATORBUG-10203 Change-Id: If15fac2743768572d02ce9962b54dfaab4ca1af3 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r--src/plugins/git/gitclient.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp
index fa190062fe..4de3a026d2 100644
--- a/src/plugins/git/gitclient.cpp
+++ b/src/plugins/git/gitclient.cpp
@@ -101,6 +101,7 @@ public:
GitDiffSwitcher(Core::IEditor *parentEditor, GitClient *gitClient, GitClient::DiffEditorType switchToType)
: QObject(parentEditor),
+ m_editor(parentEditor),
m_gitClient(gitClient),
m_editorType(switchToType)
{
@@ -135,6 +136,7 @@ public slots:
void execute();
private:
+ Core::IEditor *m_editor;
GitClient *m_gitClient;
QString m_workingDirectory;
DiffType m_diffType;
@@ -173,6 +175,7 @@ void GitDiffSwitcher::execute()
default:
break;
}
+ Core::EditorManager::closeEditor(m_editor, false);
}
class GitDiffHandler : public QObject