diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2016-02-22 19:26:09 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2016-02-22 19:26:09 +0300 |
commit | 8fe4f1f0d7f61126bfbea85430e3058a446baa42 (patch) | |
tree | 3920e3b86cc29ec98c682b9503d2a036d2bec1af /src/gui/selectivesyncdialog.cpp | |
parent | b3d57f3c7c6351eb74abc971f8dee5274679e04b (diff) |
Selective sync: Don't show negative size
Relates to issue #4491
Diffstat (limited to 'src/gui/selectivesyncdialog.cpp')
-rw-r--r-- | src/gui/selectivesyncdialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/selectivesyncdialog.cpp b/src/gui/selectivesyncdialog.cpp index 9a6682ff5..cc361cd05 100644 --- a/src/gui/selectivesyncdialog.cpp +++ b/src/gui/selectivesyncdialog.cpp @@ -145,8 +145,10 @@ void SelectiveSyncTreeView::recursiveInsert(QTreeWidgetItem* parent, QStringList } item->setIcon(0, folderIcon); item->setText(0, pathTrail.first()); - item->setText(1, Utility::octetsToString(size)); - item->setData(1, Qt::UserRole, size); + if (size >= 0) { + item->setText(1, Utility::octetsToString(size)); + item->setData(1, Qt::UserRole, size); + } // item->setData(0, Qt::UserRole, pathTrail.first()); item->setChildIndicatorPolicy(QTreeWidgetItem::ShowIndicator); } |