From 57441bbfd3bd9b2131ccbe140196ca8a9f3a2691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 16 Sep 2014 11:19:10 +0200 Subject: [PATCH] fixed assert in qabstractitemmodel --- shortcuts_management/actions_groups_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcuts_management/actions_groups_model.cpp b/shortcuts_management/actions_groups_model.cpp index a337cbff..cc5e1488 100644 --- a/shortcuts_management/actions_groups_model.cpp +++ b/shortcuts_management/actions_groups_model.cpp @@ -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(); }