mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
IssuesWidget: Fix insertion of sync errors before item errors
This commit is contained in:
parent
e7a0c1b6d0
commit
fe0de111fd
@ -146,8 +146,9 @@ void IssuesWidget::addItem(QTreeWidgetItem *item)
|
||||
// Insert item specific errors behind the others
|
||||
if (!item->text(1).isEmpty()) {
|
||||
for (int i = 0; i < _ui->_treeWidget->topLevelItemCount(); ++i) {
|
||||
if (!_ui->_treeWidget->topLevelItem(i)->text(1).isEmpty()) {
|
||||
insertLoc = i;
|
||||
if (_ui->_treeWidget->topLevelItem(i)->text(1).isEmpty()) {
|
||||
insertLoc = i + 1;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user