@ -100,7 +100,7 @@ void FolderShortcutActionManager::updateShortcutsForIndex(const QModelIndex &par
if (collection.isValid()) {
shortcutChanged(collection);
}
if (model->rowCount(child) > 0) {
if (model->hasChildren(child)) {
updateShortcutsForIndex(child, 0, model->rowCount(child) - 1);
@ -97,7 +97,7 @@ void UnityServiceManager::unreadMail(const QAbstractItemModel *model, const QMod
if (model->rowCount(index) > 0) {
if (model->hasChildren(index)) {
unreadMail(model, index);