mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
fixed assert in qabstractitemmodel
This commit is contained in:
@ -44,7 +44,7 @@ QModelIndex ActionsGroupsModel::parent(const QModelIndex &index) const
|
|||||||
|
|
||||||
void ActionsGroupsModel::addActionsGroup(const ActionsGroup &group)
|
void ActionsGroupsModel::addActionsGroup(const ActionsGroup &group)
|
||||||
{
|
{
|
||||||
beginInsertRows(QModelIndex(),groups.length()-1,groups.length());
|
beginInsertRows(QModelIndex(),groups.length(),groups.length());
|
||||||
groups.push_back(group);
|
groups.push_back(group);
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user