#4476 Fix reload of group by formation when a 3d Filter View is enabled

* Need to ensure the display model has been created by the time the cross plot is created.
This commit is contained in:
Gaute Lindkvist 2019-06-11 09:54:16 +02:00
parent 8283d1ac86
commit 979a109f80

View File

@ -28,6 +28,7 @@
#include "RiaProjectModifier.h"
#include "RiaSocketServer.h"
#include "RiaVersionInfo.h"
#include "RiaViewRedrawScheduler.h"
#include "ExportCommands/RicSnapshotAllViewsToFileFeature.h"
#include "HoloLensCommands/RicHoloLensSessionManager.h"
@ -590,6 +591,10 @@ bool RiaApplication::loadProject(const QString& projectFileName,
oilField->annotationCollection()->loadDataAndUpdate();
}
// Some procedures in onProjectOpened() may rely on the display model having been created
// So we need to force the completion of the display model here.
RiaViewRedrawScheduler::instance()->updateAndRedrawScheduledViews();
// NB! This function must be called before executing command objects,
// because the tree view state is restored from project file and sets
// current active view ( see restoreTreeViewState() )