mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Performance: Update toolbar when required
This commit is contained in:
@@ -191,7 +191,6 @@ void RimPlotCurve::fieldChangedByUi( const caf::PdmFieldHandle* changedField, co
|
||||
updateCurveAppearance();
|
||||
}
|
||||
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
replotParentPlot();
|
||||
}
|
||||
|
||||
|
||||
@@ -1151,9 +1151,6 @@ void RimSummaryCurve::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
{
|
||||
plot->updateAxes();
|
||||
plot->updatePlotTitle();
|
||||
|
||||
RiuPlotMainWindow* mainPlotWindow = RiaGuiApplication::instance()->mainPlotWindow();
|
||||
mainPlotWindow->updateMultiPlotToolBar();
|
||||
}
|
||||
else if ( changedField == &m_yPlotAxisProperties )
|
||||
{
|
||||
|
||||
@@ -684,8 +684,11 @@ void RiuPlotMainWindow::updateMultiPlotToolBar()
|
||||
}
|
||||
else
|
||||
{
|
||||
m_multiPlotToolBarEditor->setFields( toolBarFields );
|
||||
m_multiPlotToolBarEditor->updateUi();
|
||||
if ( !m_multiPlotToolBarEditor->isEditorDataEqualAndValid( toolBarFields ) )
|
||||
{
|
||||
m_multiPlotToolBarEditor->setFields( toolBarFields );
|
||||
m_multiPlotToolBarEditor->updateUi();
|
||||
}
|
||||
m_multiPlotToolBarEditor->show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user