[Pkg-owncloud-commits] [owncloud-client] 83/171: Only clean the Not Synced list for the current account #3171
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Feb 17 09:36:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to annotated tag upstream/2.1.1+dfsg
in repository owncloud-client.
commit e7e918dafe86af4ea7608c13b5f994d0a1e8acfc
Author: Jocelyn Turcotte <jturcotte at woboq.com>
Date: Thu Jan 7 16:14:12 2016 +0100
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 5578560..5c687fd 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list