summaryrefslogtreecommitdiffstats
path: root/kcontrol/kcontrol/helpwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/kcontrol/helpwidget.cpp')
-rw-r--r--kcontrol/kcontrol/helpwidget.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/kcontrol/kcontrol/helpwidget.cpp b/kcontrol/kcontrol/helpwidget.cpp
index 0bcf82796..f21c03c71 100644
--- a/kcontrol/kcontrol/helpwidget.cpp
+++ b/kcontrol/kcontrol/helpwidget.cpp
@@ -65,13 +65,14 @@ TQString HelpWidget::text() const
bool HelpWidget::clicked(const TQString & _url)
{
TQString textUrl = _url;
-
- if ( textUrl.isNull() ) {
- return true;
- }
-
ConfigModule* dockModule = _dock->module();
- if ( dockModule) {
+ if (dockModule) {
+ TQString localDocPath = dockModule->module()->handbookDocPath();
+ if (localDocPath != "")
+ textUrl = localDocPath;
+ if (textUrl.isNull())
+ return true;
+
TQString section = dockModule->module()->handbookSection();
if (section != "") {
textUrl = TQString( "%1#%2" ).arg( textUrl ).arg( section );