From: vsv Date: Tue, 26 May 2015 08:51:17 +0000 (+0300) Subject: Delete obsolete indexes X-Git-Tag: V_1.2.0~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6cf6a6dd136b1c562ae10e8265494e35a7dc649;p=modules%2Fshaper.git Delete obsolete indexes --- diff --git a/src/PartSet/PartSet_DocumentDataModel.cpp b/src/PartSet/PartSet_DocumentDataModel.cpp index bf0eff521..961768c18 100644 --- a/src/PartSet/PartSet_DocumentDataModel.cpp +++ b/src/PartSet/PartSet_DocumentDataModel.cpp @@ -136,6 +136,9 @@ void PartSet_DocumentDataModel::processEvent(const std::shared_ptrsize(ModelAPI_Feature::group()); + removeRow(aRow); } else { // Update top groups (other except parts QModelIndex aIndex = myModel->findGroup(aGroup); int aStart = myModel->rowCount(aIndex); diff --git a/src/PartSet/PartSet_DocumentDataModel.h b/src/PartSet/PartSet_DocumentDataModel.h index 360a1d686..e059a1f4e 100644 --- a/src/PartSet/PartSet_DocumentDataModel.h +++ b/src/PartSet/PartSet_DocumentDataModel.h @@ -146,7 +146,7 @@ Q_OBJECT enum { - PartsFolder = -100, + PartsFolder, HistoryNode, PartResult };