mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 06:54:39 -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)
|
||||
{
|
||||
beginInsertRows(QModelIndex(),groups.length()-1,groups.length());
|
||||
beginInsertRows(QModelIndex(),groups.length(),groups.length());
|
||||
groups.push_back(group);
|
||||
endInsertRows();
|
||||
}
|
||||
|
Reference in New Issue
Block a user