AccountSettings: fix selective sync checking

We need to set the root item to partially checked in case there
is some folders in the blacklist

The root item do not have checkmark so it is good
This commit is contained in:
Olivier Goffart 2015-06-10 17:00:08 +02:00
parent e9e11d251f
commit 5ab20e64bf

View file

@ -54,6 +54,7 @@ void FolderStatusModel::setAccount(const AccountPtr& account)
info._name = f->alias(); info._name = f->alias();
info._path = "/"; info._path = "/";
info._folder = f; info._folder = f;
info._checked = Qt::PartiallyChecked;
_folders << info; _folders << info;
connect(f, SIGNAL(progressInfo(ProgressInfo)), this, SLOT(slotSetProgress(ProgressInfo)), Qt::UniqueConnection); connect(f, SIGNAL(progressInfo(ProgressInfo)), this, SLOT(slotSetProgress(ProgressInfo)), Qt::UniqueConnection);