Commit b83777a0 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Make sure 'Staged' is always visible

parent 8d068e0e
......@@ -335,7 +335,8 @@ GitWidget::GitParsedStatus GitWidget::parseStatus(const QByteArray &raw)
void GitWidget::hideEmptyTreeNodes()
{
const auto emptyRows = m_model->emptyRows();
for (int i = 0; i < 4; ++i) {
// 1 because "Staged" will always be visible
for (int i = 1; i < 4; ++i) {
if (emptyRows.contains(i)) {
m_treeView->setRowHidden(i, QModelIndex(), true);
} else {
......
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