Bug 249730

Summary: The help button for Configuration/Accounts does not bring help
Product: [Applications] kmail Reporter: Christopher Yeleighton <giecrilj>
Component: GUIAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 1.12.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Christopher Yeleighton 2010-09-01 11:42:47 UTC
Version:           1.12.4 (using KDE 4.3.5) 
OS:                Linux

The help button for Configuration/Accounts does not bring help. KHelpCenter shows an error message.

Reproducible: Always

Steps to Reproduce:
1. Open Configuration/Accounts.
2. Press [Help].

Actual Results:  
1. The Accounts pane has a [Help] button.
2. KHelpCenter shows an error message: "Plik lub katalog help:/ nie istnieje".

Expected Results:  
2. KHelpCenter should display <URL:http://docs.kde.org/stable/en/kdepim/kmail/setting-up-your-account.html> or equivalent.

OS: Linux (x86_64) release 2.6.31.12-0.2-desktop
Compiler: gcc
Comment 1 Laurent Montel 2010-09-01 13:22:45 UTC
Works fine here.
Perhaps there is a pb in doc for your country.
Comment 2 Christopher Yeleighton 2010-09-04 15:32:57 UTC
kdelibs-4.3.5/kutils/kcmultidialog.cpp:246
246       KUrl docUrl( KUrl( "help:/" ), docPath );

in my case, docPath is empty.  The code should disable the button if docPath is empty, which it does not do (sub-bug_A).

That is because *d->modules["Konta"].d_ptr->modInfo.d->doc.d is empty.  It is configured in KCModuleInfo::Private::loadAll using the following code:

127       doc = service->property( "X-DocPath", QVariant::String ).toString();

at usr/src/debug/kdelibs-4.3.5/kutils/kcmoduleinfo.cpp:127

The service in question is kmail_config_accounts.desktop. For the documentation button to work, the service must have an X-DocPath entry.

However, the file /usr/share/kde4/services/kmail_config_accounts.desktop does not have such an entry, neither in English nor in any other language (sub-bug_B).

QED.
Comment 3 Laurent Montel 2010-09-04 15:57:04 UTC
ok kde-4.3.x

in kde-4.4.5 it's ok
X-DocPath=kmail/index.html#configure-accounts

Just update your kde :)
it's ok now, I close it