mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 08:52:14 -05:00
Fixed how to compute number of views in a collection
p4#: 20842
This commit is contained in:
1 parent
85f0d8b195
commit
086262a4b6
1 file changed
+2
-2
@@ -343,8 +343,8 @@ RimReservoirView* RimUiTreeModelPdm::addReservoirView(const QModelIndex& itemInd
|
||||
RimReservoir* rimReservoir = dynamic_cast<RimReservoir*>(collectionItem->dataObject().p());
|
||||
RimReservoirView* insertedView = rimReservoir->createAndAddReservoirView();
|
||||
|
||||
int viewCount = rowCount(collectionIndex.parent());
|
||||
beginInsertRows(collectionIndex.parent(), viewCount, viewCount);
|
||||
int viewCount = rowCount(collectionIndex);
|
||||
beginInsertRows(collectionIndex, viewCount, viewCount);
|
||||
|
||||
caf::PdmUiTreeItem* childItem = new caf::PdmUiTreeItem(collectionItem, viewCount, insertedView);
|
||||
|
||||
|
||||
Reference in new issue
Block a user