Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
b83777a0
Commit
b83777a0
authored
Feb 15, 2021
by
Waqar Ahmed
Browse files
Make sure 'Staged' is always visible
parent
8d068e0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitwidget.cpp
View file @
b83777a0
...
@@ -335,7 +335,8 @@ GitWidget::GitParsedStatus GitWidget::parseStatus(const QByteArray &raw)
...
@@ -335,7 +335,8 @@ GitWidget::GitParsedStatus GitWidget::parseStatus(const QByteArray &raw)
void
GitWidget
::
hideEmptyTreeNodes
()
void
GitWidget
::
hideEmptyTreeNodes
()
{
{
const
auto
emptyRows
=
m_model
->
emptyRows
();
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
))
{
if
(
emptyRows
.
contains
(
i
))
{
m_treeView
->
setRowHidden
(
i
,
QModelIndex
(),
true
);
m_treeView
->
setRowHidden
(
i
,
QModelIndex
(),
true
);
}
else
{
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment