myAutoLoad( autoLoad ),
myBlocked( false )
{
+ setProperty("activateModule", false);
readModuleList();
}
bool res = false;
if ( !modName.isEmpty() )
{
- myActvatingModule = modName;
+ setProperty("activateModule", true);
CAM_Module* mod = module( modName );
if ( !mod )
mod = loadModule( modName );
if ( mod )
res = activateModule( mod );
- myActvatingModule = QString();
+ setProperty("activateModule", false);
}
else
res = activateModule( 0 );
virtual bool abortAllOperations();
- QString actvatingModule() const { return myActvatingModule; }
-
private:
void readModuleList();
static ModuleInfoList myInfoList; //!< modules info list
bool myAutoLoad; //!< auto loading flag
bool myBlocked; //!< "blocked" flag, internal usage
- QString myActvatingModule; //!< Name of currently activating module.
};
#ifdef WIN32
QString moduleName = message.split( sectionSeparator ).last();
// Check name of current activating module name in order to avoid ciclik
// call because of messages
- if (actvatingModule().isNull()) {
+ if (!property("activateModule").toBool()) {
CAM_Module* mod = module(moduleName);
if (!mod)
mod = module(moduleTitle(moduleName));