Use hasChildren

wilder
Laurent Montel 6 years ago
parent 41cd5da108
commit 7aedc83ffa
  1. 2
      src/foldershortcutactionmanager.cpp
  2. 2
      src/unityservicemanager.cpp

@ -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);
}
}

Loading…
Cancel
Save