mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
Make sure onProjectOpenedOrClosed() to set active view as Octave scripts depend on active view
p4#: 22403
This commit is contained in:
parent
5160c9bf86
commit
92408c7ec8
@ -350,6 +350,12 @@ bool RiaApplication::loadProject(const QString& projectFileName)
|
||||
caseProgress.incrementProgress();
|
||||
}
|
||||
|
||||
// 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() )
|
||||
// Default behavior for scripts is to use current active view for data read/write
|
||||
onProjectOpenedOrClosed();
|
||||
|
||||
// Loop over command objects and execute them
|
||||
for (size_t i = 0; i < m_project->commandObjects.size(); i++)
|
||||
{
|
||||
@ -362,8 +368,6 @@ bool RiaApplication::loadProject(const QString& projectFileName)
|
||||
// Execute command objects, and release the mutex when the queue is empty
|
||||
executeCommandObjects();
|
||||
|
||||
onProjectOpenedOrClosed();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user