Commit 2d772f8d authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Always expand stage node

parent 56425ba1
...@@ -394,6 +394,7 @@ void GitWidget::gitStatusReady(int exit, QProcess::ExitStatus) ...@@ -394,6 +394,7 @@ void GitWidget::gitStatusReady(int exit, QProcess::ExitStatus)
void GitWidget::hideEmptyTreeNodes() void GitWidget::hideEmptyTreeNodes()
{ {
const auto emptyRows = m_model->emptyRows(); const auto emptyRows = m_model->emptyRows();
m_treeView->expand(m_model->getModelIndex((GitStatusModel::NodeStage)));
// 1 because "Staged" will always be visible // 1 because "Staged" will always be visible
for (int i = 1; i < 4; ++i) { for (int i = 1; i < 4; ++i) {
if (emptyRows.contains(i)) { if (emptyRows.contains(i)) {
......
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