-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
module = itM.next();
if ( !module ) continue;
- if ( SalomeApp_Module* sModule = dynamic_cast<SalomeApp_Module*>( module ) ) {
- ip->append( "AP_MODULES_LIST", sModule->moduleName().toStdString() );
- sModule->storeVisualParameters( savePoint );
+
+ if ( LightApp_Module* lModule = dynamic_cast<LightApp_Module*>( module ) ) {
+ ip->append( "AP_MODULES_LIST", lModule->moduleName().toStdString() );
+ if ( SalomeApp_Module* sModule = dynamic_cast<SalomeApp_Module*>( module ) )
+ sModule->storeVisualParameters( savePoint );
}
}
}
}
+ qApp->processEvents( QEventLoop::ExcludeUserInputEvents, 5000 );
+
// restore modules' visual parameters
std::vector<std::string> v = ip->getValues( "AP_MODULES_LIST" );
for ( int i = 0; i < v.size(); i++ )
// 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)