diff options
-rw-r--r-- | src/plugins/git/gitclient.cpp | 3 |
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 |