From e7e918dafe86af4ea7608c13b5f994d0a1e8acfc Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Thu, 7 Jan 2016 16:14:12 +0100 Subject: [PATCH] Only clean the Not Synced list for the current account #3171 --- src/gui/protocolwidget.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/protocolwidget.cpp b/src/gui/protocolwidget.cpp index 557856023..5c687fda8 100644 --- a/src/gui/protocolwidget.cpp +++ b/src/gui/protocolwidget.cpp @@ -138,7 +138,14 @@ void ProtocolWidget::cleanItems(const QString& folder) // The issue list is a state, clear it and let the next sync fill it // with ignored files and propagation errors. - _issueItemView->clear(); + itemCnt = _issueItemView->topLevelItemCount(); + for( int cnt = itemCnt-1; cnt >=0 ; cnt-- ) { + QTreeWidgetItem *item = _issueItemView->topLevelItem(cnt); + QString itemFolder = item->data(2, Qt::UserRole).toString(); + if( itemFolder == folder ) { + delete item; + } + } } QString ProtocolWidget::timeString(QDateTime dt, QLocale::FormatType format) const -- 2.30.2