Commit 07ddb9f0 authored by dt's avatar dt
Browse files

Fixes git log, git blame and all the others resetting current project

I'm not 100% positive that this is the best fix. Though i can't come up
with a better one for the moment.

Task-Nr: 256251
parent 24cf802a
......@@ -1000,6 +1000,11 @@ void ProjectExplorerPlugin::setCurrentFile(Project *project, const QString &file
void ProjectExplorerPlugin::setCurrentFile(const QString &filePath)
Project *project = m_session->projectForFile(filePath);
// If the file is not in any project, stay with the current project
// e.g. on opening a git diff buffer, git log buffer, we don't change the project
// I'm not 100% sure this is correct
if (!project)
project = m_currentProject;
setCurrent(project, filePath, 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment