myPopupMgr->insert( dispOnly, -1, 0 );
myPopupMgr->insert( separator(), -1, 0 );
- QString uniform = "( count( $component ) = 1 ) and ( component != activeModule )";
+ QString uniform = "( count( $component ) = 1 ) and ( component != activeModule ) and ( activeModule = '%1' )";
+ uniform = uniform.arg( name() );
myPopupMgr->setRule( disp, QString( "( not isVisible ) and " ) + uniform, true );
myPopupMgr->setRule( erase, QString( "( isVisible ) and " ) + uniform, true );
myPopupMgr->setRule( dispOnly, uniform, true );