projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7a0c1b
)
IssuesWidget: Fix insertion of sync errors before item errors
author
Christian Kamm
<mail@ckamm.de>
Wed, 12 Jul 2017 07:45:10 +0000
(09:45 +0200)
committer
Christian Kamm
<mail@ckamm.de>
Wed, 12 Jul 2017 08:10:00 +0000
(10:10 +0200)
src/gui/issueswidget.cpp
patch
|
blob
|
history
diff --git
a/src/gui/issueswidget.cpp
b/src/gui/issueswidget.cpp
index 51b47835fa5ad91d56e36a46b76318585b25d07e..9356710ae57fde05b274dc6c7a130c2c25497bd8 100644
(file)
--- a/
src/gui/issueswidget.cpp
+++ b/
src/gui/issueswidget.cpp
@@
-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;
}
}