mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed assert in qabstractitemmodel
This commit is contained in:
parent
a03809cf40
commit
57441bbfd3
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user