From eee38532480709d62b68b2d0857e5c86c8f988ea Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 17 Sep 2013 13:00:09 +0000 Subject: [PATCH] Fix problem of restore GUI state --- src/SalomeApp/SalomeApp_VisualState.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.2