mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update icon state for range filters as part of loading project, not from initAfterRead
This commit is contained in:
parent
ad6e17a5d9
commit
09a2579c49
@ -399,6 +399,9 @@ bool RiaApplication::loadProject(const QString& projectFileName, ProjectLoadActi
|
||||
|
||||
riv->loadDataAndUpdate();
|
||||
this->setActiveReservoirView(riv);
|
||||
|
||||
riv->rangeFilterCollection()->updateIconState();
|
||||
|
||||
viewProgress.incrementProgress();
|
||||
}
|
||||
|
||||
|
@ -176,20 +176,6 @@ RimEclipseView* RimCellRangeFilterCollection::eclipseView() const
|
||||
return dynamic_cast<RimEclipseView*>(baseView());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimCellRangeFilterCollection::initAfterRead()
|
||||
{
|
||||
for (size_t i = 0; i < rangeFilters.size(); i++)
|
||||
{
|
||||
RimCellRangeFilter* rangeFilter = rangeFilters[i];
|
||||
rangeFilter->updateIconState();
|
||||
}
|
||||
|
||||
updateIconState();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -346,5 +332,11 @@ void RimCellRangeFilterCollection::updateIconState()
|
||||
updateUiIconFromState(activeIcon);
|
||||
|
||||
uiCapability()->updateConnectedEditors();
|
||||
|
||||
for (size_t i = 0; i < rangeFilters.size(); i++)
|
||||
{
|
||||
RimCellRangeFilter* rangeFilter = rangeFilters[i];
|
||||
rangeFilter->updateIconState();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,10 +60,6 @@ public:
|
||||
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue );
|
||||
virtual caf::PdmFieldHandle* objectToggleField();
|
||||
|
||||
protected:
|
||||
// Overridden methods
|
||||
virtual void initAfterRead();
|
||||
|
||||
private:
|
||||
RimView* baseView() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user