mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix missing display of wells in tree view
p4#: 21234
This commit is contained in:
@@ -404,6 +404,9 @@ RimReservoirView* RimUiTreeModelPdm::addReservoirView(const QModelIndex& itemInd
|
|||||||
|
|
||||||
RimReservoirView* insertedView = rimReservoir->createAndAddReservoirView();
|
RimReservoirView* insertedView = rimReservoir->createAndAddReservoirView();
|
||||||
|
|
||||||
|
// Must be run before buildViewItems, as wells are created in this function
|
||||||
|
insertedView->loadDataAndUpdate();
|
||||||
|
|
||||||
int viewCount = rowCount(collectionIndex);
|
int viewCount = rowCount(collectionIndex);
|
||||||
beginInsertRows(collectionIndex, viewCount, viewCount);
|
beginInsertRows(collectionIndex, viewCount, viewCount);
|
||||||
|
|
||||||
@@ -412,8 +415,6 @@ RimReservoirView* RimUiTreeModelPdm::addReservoirView(const QModelIndex& itemInd
|
|||||||
|
|
||||||
endInsertRows();
|
endInsertRows();
|
||||||
|
|
||||||
insertedView->loadDataAndUpdate();
|
|
||||||
|
|
||||||
return insertedView;
|
return insertedView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user