fixed assert in qabstractitemmodel

This commit is contained in:
Luis Ángel San Martín 2014-09-16 11:19:10 +02:00
parent a03809cf40
commit 57441bbfd3

View File

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