RFT : Fix several update issues

This commit is contained in:
Magne Sjaastad 2022-06-27 15:16:31 +02:00
parent 0cc4f69ba3
commit 55966ef6e8
3 changed files with 6 additions and 3 deletions

View File

@ -100,6 +100,7 @@
#include "RiuMdiMaximizeWindowGuard.h"
#include "RiuMessagePanel.h"
#include "RiuPlotMainWindow.h"
#include "RiuPlotMainWindowTools.h"
#include "RiuProcessMonitor.h"
#include "RiuRecentFileActionProvider.h"
#include "RiuViewer.h"
@ -1277,6 +1278,9 @@ void RiaGuiApplication::onProjectOpened()
m_maximizeWindowGuard.reset();
processEvents();
// Make sure to process events before this function to avoid strange Qt crash
RiuPlotMainWindowTools::refreshToolbars();
}
//--------------------------------------------------------------------------------------------------

View File

@ -1020,8 +1020,6 @@ void RimPlotCurve::setParentPlotAndReplot( RiuPlotWidget* plotWidget )
{
CAF_ASSERT( plotWidget );
if ( m_parentPlot == plotWidget ) return;
setParentPlotNoReplot( plotWidget );
plotWidget->replot();
}

View File

@ -601,7 +601,6 @@ void RimWellLogCurveCommonDataSource::applyDataSourceChanges( const std::vector<
RimWellLogPlot* parentPlot = nullptr;
extractionCurve->firstAncestorOrThisOfTypeAsserted( parentPlot );
plots.insert( parentPlot );
curve->updateConnectedEditors();
}
}
else if ( measurementCurve )
@ -621,6 +620,8 @@ void RimWellLogCurveCommonDataSource::applyDataSourceChanges( const std::vector<
rftCurve->firstAncestorOrThisOfTypeAsserted( parentPlot );
plots.insert( parentPlot );
}
curve->updateConnectedEditors();
}
for ( RimWellLogTrack* track : tracks )