diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-11-27 11:51:59 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-11-27 11:51:59 +0900 |
commit | 01d88b2886ada398c883a44410827b11b907e512 (patch) | |
tree | a293fc2e5c18385408a922ea6544052b9b9bb103 /tdeutils/kcmultidialog.cpp | |
parent | d4b2ca0550eeacd278c638664b43464239342244 (diff) | |
download | tdelibs-01d88b2886ada398c883a44410827b11b907e512.tar.gz tdelibs-01d88b2886ada398c883a44410827b11b907e512.zip |
Added support for handbookDocPath(). This relates to bug 1850.
Diffstat (limited to 'tdeutils/kcmultidialog.cpp')
-rw-r--r-- | tdeutils/kcmultidialog.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tdeutils/kcmultidialog.cpp b/tdeutils/kcmultidialog.cpp index 0ba07fe6b..cbdffaa7d 100644 --- a/tdeutils/kcmultidialog.cpp +++ b/tdeutils/kcmultidialog.cpp @@ -189,10 +189,14 @@ void KCMultiDialog::slotHelp() 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; + TDECModuleProxy *m = (*it).kcm; + + docPath = m->handbookDocPath(); + if (docPath == TQString::null) + docPath = m->moduleInfo().docPath(); + TQString section = m->handbookSection(); - if (section != "") { + if (section != TQString::null) { docPath = TQString( "%1#%2" ).arg( docPath ).arg( section ); } break; |