summaryrefslogtreecommitdiffstats
path: root/kutils
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-09 16:37:06 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-09 16:37:06 -0600
commite9b3f195e2d568e25b8b73810503518e4e7f8480 (patch)
tree0e11dba628e359cd1145f1ddd63786a351a50cb8 /kutils
parent511779841007afca5231e6c69e996eba0295eaae (diff)
downloadtdelibs-e9b3f195e2d568e25b8b73810503518e4e7f8480.tar.gz
tdelibs-e9b3f195e2d568e25b8b73810503518e4e7f8480.zip
Add monitor hotplug notification support to TDE hardware devices library
Fix spurious xcalib pipe error notifications Fix krandr available resolution detection
Diffstat (limited to 'kutils')
-rw-r--r--kutils/kcmoduleproxy.cpp7
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" );