From: vsr Date: Tue, 17 Sep 2013 13:00:09 +0000 (+0000) Subject: Fix problem of restore GUI state X-Git-Tag: BR_hydro_v_0_3_1~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eee38532480709d62b68b2d0857e5c86c8f988ea;p=modules%2Fgui.git Fix problem of restore GUI state --- diff --git a/src/SalomeApp/SalomeApp_VisualState.cxx b/src/SalomeApp/SalomeApp_VisualState.cxx index 253e8f297..eb566553f 100644 --- a/src/SalomeApp/SalomeApp_VisualState.cxx +++ b/src/SalomeApp/SalomeApp_VisualState.cxx @@ -264,6 +264,8 @@ void SalomeApp_VisualState::restoreState(int savePoint) } } + qApp->processEvents( QEventLoop::ExcludeUserInputEvents, 5000 ); + // restore modules' visual parameters std::vector v = ip->getValues( "AP_MODULES_LIST" ); for ( int i = 0; i < v.size(); i++ ) @@ -305,7 +307,7 @@ void SalomeApp_VisualState::restoreState(int savePoint) // so the same views will get the same names. nameViewWindows( lst ); - qApp->processEvents(); + qApp->processEvents( QEventLoop::ExcludeUserInputEvents, 5000 ); // restore workstack parameters. should be done after module's restoreVisualParameters(), because // some modules can create their own viewers (like VISU creates GaussViewers)