mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Add asserts in GroupModel::groupAboutToRemove().
This commit is contained in:
parent
db08058c4e
commit
7be87051ab
@ -319,7 +319,9 @@ void GroupModel::groupAboutToRemove(Group* group)
|
||||
Q_ASSERT(group->parentGroup());
|
||||
|
||||
QModelIndex parentIndex = parent(group);
|
||||
Q_ASSERT(parentIndex.isValid());
|
||||
int pos = group->parentGroup()->children().indexOf(group);
|
||||
Q_ASSERT(pos != -1);
|
||||
|
||||
beginRemoveRows(parentIndex, pos, pos);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user