doExpand() is called when the selective sync editing mode is enabled in
the folder settings view. Previously it'd set the expansion to be
exactly the root items. Now, it just expands any root items that are
currently collapsed, leaving all other item expansion unchanged.
void AccountSettings::doExpand()
{
- _ui->_folderList->expandToDepth(0);
+ // Make sure at least the root items are expanded
+ for (int i = 0; i < _model->rowCount(); ++i) {
+ auto idx = _model->index(i);
+ if (!_ui->_folderList->isExpanded(idx))
+ _ui->_folderList->setExpanded(idx, true);
+ }
}
void AccountSettings::slotShowMnemonic(const QString &mnemonic) {