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 "RiuMdiMaximizeWindowGuard.h"
#include "RiuMessagePanel.h" #include "RiuMessagePanel.h"
#include "RiuPlotMainWindow.h" #include "RiuPlotMainWindow.h"
#include "RiuPlotMainWindowTools.h"
#include "RiuProcessMonitor.h" #include "RiuProcessMonitor.h"
#include "RiuRecentFileActionProvider.h" #include "RiuRecentFileActionProvider.h"
#include "RiuViewer.h" #include "RiuViewer.h"
@ -1277,6 +1278,9 @@ void RiaGuiApplication::onProjectOpened()
m_maximizeWindowGuard.reset(); m_maximizeWindowGuard.reset();
processEvents(); 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 ); CAF_ASSERT( plotWidget );
if ( m_parentPlot == plotWidget ) return;
setParentPlotNoReplot( plotWidget ); setParentPlotNoReplot( plotWidget );
plotWidget->replot(); plotWidget->replot();
} }

View File

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