AccountSettings: Do not prepend the folder alias to the undecided folders

This fixes bug #3685
This commit is contained in:
Klaas Freitag 2015-09-09 17:51:38 +02:00
parent 5e657aadee
commit 088c0d471a

View file

@ -475,12 +475,16 @@ void AccountSettings::refreshSelectiveSyncStatus()
}
foreach (Folder *folder, FolderMan::instance()->map().values()) {
if (folder->accountState() != _accountState) { continue; }
if (folder->accountState() != _accountState) {
continue;
}
auto undecidedList = folder->journalDb()->getSelectiveSyncList(SyncJournalDb::SelectiveSyncUndecidedList);
foreach(const auto &it, undecidedList) {
undecidedFolder += ( folder->alias() + QLatin1String("/") + it);
undecidedFolder.append(it);
}
}
if (undecidedFolder.isEmpty()) {
ui->selectiveSyncNotification->setVisible(false);
ui->selectiveSyncNotification->setText(QString());