diff options
Diffstat (limited to 'kutils/kcmoduleproxy.cpp')
| -rw-r--r-- | kutils/kcmoduleproxy.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/kutils/kcmoduleproxy.cpp b/kutils/kcmoduleproxy.cpp index e0074defe..2323cd262 100644 --- a/kutils/kcmoduleproxy.cpp +++ b/kutils/kcmoduleproxy.cpp @@ -195,9 +195,10 @@ KCModule * KCModuleProxy::realModule() const  		d->topLayout->addWidget( d->kcm ); -		if ( !d->rootInfo && /* If it's already done */ -				moduleInfo().needsRootPrivileges() /* root, anyone? */ &&  -				!KUser().isSuperUser() ) /* Not necessary if we're root */ +		if ( !d->rootInfo && /* If the message was not yet created */ +				d->kcm->useRootOnlyMsg() /* and the module requests the message */ && +				moduleInfo().needsRootPrivileges() /* and the module wants root access */ &&  +				!KUser().isSuperUser() ) /* and we are not currently root */  		{  			d->rootInfo = new TQLabel( that, "rootInfo" );  | 
