diff --git a/shortcuts_management/actions_groups_model.cpp b/shortcuts_management/actions_groups_model.cpp index a337cbff..cc5e1488 100644 --- a/shortcuts_management/actions_groups_model.cpp +++ b/shortcuts_management/actions_groups_model.cpp @@ -44,7 +44,7 @@ QModelIndex ActionsGroupsModel::parent(const QModelIndex &index) const void ActionsGroupsModel::addActionsGroup(const ActionsGroup &group) { - beginInsertRows(QModelIndex(),groups.length()-1,groups.length()); + beginInsertRows(QModelIndex(),groups.length(),groups.length()); groups.push_back(group); endInsertRows(); }