summaryrefslogtreecommitdiffstats
path: root/tdeutils/tdecmoduleproxy.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-09 16:14:40 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-09 16:14:40 -0500
commit47d283876b6d291b04dab7da05c2ce1bce9e8eb3 (patch)
tree5cd42ca1205e0f7bc0ed5d3f76a60f785cffa1bd /tdeutils/tdecmoduleproxy.cpp
parent232853179360c3d0fc3fb2dc830f02488e2b83e7 (diff)
downloadtdelibs-47d283876b6d291b04dab7da05c2ce1bce9e8eb3.tar.gz
tdelibs-47d283876b6d291b04dab7da05c2ce1bce9e8eb3.zip
Load proper handbook section when a TDEControl module is loaded via tdecmshell instead of kcontrol
This relates to Bug 1850
Diffstat (limited to 'tdeutils/tdecmoduleproxy.cpp')
-rw-r--r--tdeutils/tdecmoduleproxy.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/tdeutils/tdecmoduleproxy.cpp b/tdeutils/tdecmoduleproxy.cpp
index eeac43b02..f1c91e414 100644
--- a/tdeutils/tdecmoduleproxy.cpp
+++ b/tdeutils/tdecmoduleproxy.cpp
@@ -588,14 +588,26 @@ TQString TDECModuleProxy::quickHelp() const
const TDEAboutData * TDECModuleProxy::aboutData() const
{
- if( !d->rootMode )
+ if( !d->rootMode ) {
return realModule() ? realModule()->aboutData() : 0;
- else
- /* This needs fixing, perhaps cache a TDEAboutData copy
+ }
+ else {
+ /* This needs fixing, perhaps cache a TDEAboutData copy
* while in root mode? */
return 0;
-
+ }
+}
+TQString TDECModuleProxy::handbookSection() const
+{
+ if( !d->rootMode ) {
+ return realModule() ? realModule()->handbookSection() : TQString::null;
+ }
+ else {
+ /* This needs fixing, perhaps cache a TDEAboutData copy
+ * while in root mode? */
+ return TQString::null;
+ }
}
int TDECModuleProxy::buttons() const