From 123865f0b00c2e294817e32853661eb07bec2bce Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Fri, 25 Jan 2019 13:21:07 +1300 Subject: [PATCH] Revert commit 9eac458 (#1958). Indeed, I am not happy with that solution, hence a better one is coming up. --- .../src/cellmlannotationviewcellmllistwidget.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/plugins/editing/CellMLAnnotationView/src/cellmlannotationviewcellmllistwidget.cpp b/src/plugins/editing/CellMLAnnotationView/src/cellmlannotationviewcellmllistwidget.cpp index 6bb338a889..03e28cd9c2 100644 --- a/src/plugins/editing/CellMLAnnotationView/src/cellmlannotationviewcellmllistwidget.cpp +++ b/src/plugins/editing/CellMLAnnotationView/src/cellmlannotationviewcellmllistwidget.cpp @@ -528,15 +528,9 @@ void CellmlAnnotationViewCellmlListWidget::initializeTreeViewWidget(bool pSelect void CellmlAnnotationViewCellmlListWidget::populateModel() { - // Make sure that we have a model before actually populating ourselves - - iface::cellml_api::Model *cellmlModel = mCellmlFile->model(); - - if (!cellmlModel) - return; - // Retrieve the model's root + iface::cellml_api::Model *cellmlModel = mCellmlFile->model(); CellmlAnnotationViewCellmlElementItem *modelItem = new CellmlAnnotationViewCellmlElementItem(CellmlAnnotationViewCellmlElementItem::Model, cellmlModel);