Commit ca5d52fe authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Open untracked files on double-click

Task-number: QTCREATORBUG-6612
Change-Id: Ic56f4cd20063c9d4d05316607636aa3df1d1a5a3
Reviewed-by: default avatarAndré Hartmann <>
Reviewed-by: default avatarTobias Hunger <>
parent ae09c33f
...@@ -153,7 +153,9 @@ void GitSubmitEditor::slotDiffSelected(const QList<int> &rows) ...@@ -153,7 +153,9 @@ void GitSubmitEditor::slotDiffSelected(const QList<int> &rows)
unmergedFiles.push_back(fileName); unmergedFiles.push_back(fileName);
else if (state & StagedFile) else if (state & StagedFile)
stagedFiles.push_back(fileName); stagedFiles.push_back(fileName);
else if (state != UntrackedFile) else if (state == UntrackedFile)
Core::EditorManager::openEditor(m_workingDirectory + QLatin1Char('/') + fileName);
unstagedFiles.push_back(fileName); unstagedFiles.push_back(fileName);
} }
if (!unstagedFiles.empty() || !stagedFiles.empty()) if (!unstagedFiles.empty() || !stagedFiles.empty())
Markdown is supported
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