summaryrefslogtreecommitdiffstats
path: root/tdeutils/kcmultidialog.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/kcmultidialog.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/kcmultidialog.cpp')
-rw-r--r--tdeutils/kcmultidialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tdeutils/kcmultidialog.cpp b/tdeutils/kcmultidialog.cpp
index 6a074040b..0ba07fe6b 100644
--- a/tdeutils/kcmultidialog.cpp
+++ b/tdeutils/kcmultidialog.cpp
@@ -186,12 +186,18 @@ void KCMultiDialog::slotHelp()
int curPageIndex = activePageIndex();
ModuleList::Iterator end = m_modules.end();
- for( ModuleList::Iterator it = m_modules.begin(); it != end; ++it )
+ for( ModuleList::Iterator it = m_modules.begin(); it != end; ++it ) {
if( pageIndex( ( TQWidget * )( *it ).kcm->parent() ) == curPageIndex )
{
docPath = ( *it ).kcm->moduleInfo().docPath();
+ TDECModuleProxy * m = ( *it ).kcm;
+ TQString section = m->handbookSection();
+ if (section != "") {
+ docPath = TQString( "%1#%2" ).arg( docPath ).arg( section );
+ }
break;
}
+ }
KURL url( KURL("help:/"), docPath );