Process events to make active view set before executing Octave scripts

p4#: 22404
This commit is contained in:
Magne Sjaastad 2013-09-13 11:01:29 +02:00
parent 92408c7ec8
commit 4329d6de0f

View File

@ -355,6 +355,7 @@ bool RiaApplication::loadProject(const QString& projectFileName)
// current active view ( see restoreTreeViewState() )
// Default behavior for scripts is to use current active view for data read/write
onProjectOpenedOrClosed();
processEvents();
// Loop over command objects and execute them
for (size_t i = 0; i < m_project->commandObjects.size(); i++)