SelectiveSyncDialog: Fix sync-nothing case. #2219

This commit is contained in:
Christian Kamm 2014-09-17 16:13:47 +02:00
parent 1f129d0bcb
commit e395282e0e

View file

@ -111,6 +111,8 @@ void SelectiveSyncTreeView::slotUpdateDirectories(const QStringList&list)
root->setData(0, Qt::UserRole, QString()); root->setData(0, Qt::UserRole, QString());
if (_oldBlackList.isEmpty()) { if (_oldBlackList.isEmpty()) {
root->setCheckState(0, Qt::Checked); root->setCheckState(0, Qt::Checked);
} else if (_oldBlackList.contains("")) {
root->setCheckState(0, Qt::Unchecked);
} else { } else {
root->setCheckState(0, Qt::PartiallyChecked); root->setCheckState(0, Qt::PartiallyChecked);
} }