mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove redundant update code
This commit is contained in:
parent
192d8d1b21
commit
eddafa76f0
@ -1434,7 +1434,6 @@ void RiaGuiApplication::applyGuiPreferences( const RiaPreferences*
|
|||||||
bool existingViewsWithDifferentMeshLines = false;
|
bool existingViewsWithDifferentMeshLines = false;
|
||||||
bool existingViewsWithCustomColors = false;
|
bool existingViewsWithCustomColors = false;
|
||||||
bool existingViewsWithCustomZScale = false;
|
bool existingViewsWithCustomZScale = false;
|
||||||
bool existingObjectsWithCustomFonts = false;
|
|
||||||
if ( oldPreferences )
|
if ( oldPreferences )
|
||||||
{
|
{
|
||||||
for ( auto viewWindow : allViewWindows )
|
for ( auto viewWindow : allViewWindows )
|
||||||
@ -1481,14 +1480,12 @@ void RiaGuiApplication::applyGuiPreferences( const RiaPreferences*
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool applySettingsToAllViews = false;
|
bool applySettingsToAllViews = false;
|
||||||
if ( existingViewsWithCustomColors || existingViewsWithCustomZScale || existingViewsWithDifferentMeshLines ||
|
if ( existingViewsWithCustomColors || existingViewsWithCustomZScale || existingViewsWithDifferentMeshLines )
|
||||||
existingObjectsWithCustomFonts )
|
|
||||||
{
|
{
|
||||||
QStringList changedData;
|
QStringList changedData;
|
||||||
if ( existingViewsWithDifferentMeshLines ) changedData << "Mesh Visibility";
|
if ( existingViewsWithDifferentMeshLines ) changedData << "Mesh Visibility";
|
||||||
if ( existingViewsWithCustomColors ) changedData << "Colors";
|
if ( existingViewsWithCustomColors ) changedData << "Colors";
|
||||||
if ( existingViewsWithCustomZScale ) changedData << "Z-Scale";
|
if ( existingViewsWithCustomZScale ) changedData << "Z-Scale";
|
||||||
if ( existingObjectsWithCustomFonts ) changedData << "Fonts Sizes";
|
|
||||||
|
|
||||||
QString listString = changedData.takeLast();
|
QString listString = changedData.takeLast();
|
||||||
if ( !changedData.empty() )
|
if ( !changedData.empty() )
|
||||||
|
@ -891,6 +891,7 @@ void Rim3dView::fieldChangedByUi( const caf::PdmFieldHandle* changedField, const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->applyBackgroundColorAndFontChanges();
|
this->applyBackgroundColorAndFontChanges();
|
||||||
|
this->updateConnectedEditors();
|
||||||
}
|
}
|
||||||
else if ( changedField == &maximumFrameRate )
|
else if ( changedField == &maximumFrameRate )
|
||||||
{
|
{
|
||||||
@ -1224,6 +1225,8 @@ void Rim3dView::applyBackgroundColorAndFontChanges()
|
|||||||
}
|
}
|
||||||
updateGridBoxData();
|
updateGridBoxData();
|
||||||
updateAnnotationItems();
|
updateAnnotationItems();
|
||||||
|
updateConnectedEditors();
|
||||||
|
|
||||||
onUpdateLegends();
|
onUpdateLegends();
|
||||||
this->scheduleCreateDisplayModelAndRedraw();
|
this->scheduleCreateDisplayModelAndRedraw();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user