From: Jocelyn Turcotte Date: Thu, 7 Jan 2016 15:14:12 +0000 (+0100) Subject: Only clean the Not Synced list for the current account #3171 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1254^2~94 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e7e918dafe86af4ea7608c13b5f994d0a1e8acfc;p=nextcloud-desktop.git Only clean the Not Synced list for the current account #3171 --- 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