Bug 335118 - Contacts and Mail components are trying to use the same template disregarding user settings
Summary: Contacts and Mail components are trying to use the same template disregarding...
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: contacts (show other bugs)
Version: 4.13.1
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-21 08:14 UTC by Adrian Piotrowicz
Modified: 2014-06-02 06:35 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.13.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Piotrowicz 2014-05-21 08:14:20 UTC
When using templates with different names in KAddressBook and KMail Kontact is trying to use template with name from component which was started first.
For example:
I'm using "letterhead" template in KMail and "default" in KAddressBook.
If I start Kontact and open up mail component and then contacts component I'm getting:
Template not found, contact.html
Template not found, contact_embedded.html
in contact details section.
My workaround was to create a symlink called "letterhead" pointing to "default" inside "/usr/share/kde4/apps/kaddressbook/viewertemplates"

Reproducible: Always

Steps to Reproduce:
1. Start Kontact
2. Choose a different theme in either mail component or contacts component
3. Restart contact
Actual Results:  
Either mail preview is broken or contact information in not visible

Expected Results:  
Mail and contacts component should respect user settings
Comment 1 Adrian Piotrowicz 2014-05-21 08:14:58 UTC
Related bug report: https://bugs.kde.org/show_bug.cgi?id=331852
Comment 2 Laurent Montel 2014-05-21 08:24:14 UTC

*** This bug has been marked as a duplicate of bug 331852 ***
Comment 3 Laurent Montel 2014-05-29 07:35:59 UTC
Ok I was able to show bug.
I will investigate soon !
Comment 4 nightrecon 2014-05-30 18:49:17 UTC
My work around for this was to comment out a line in kontactrc as follows:

[GrantleeTheme]
#grantlee-theme-name=example_fancy

Then restarted Kontact and both lines were gone and Contacts in Kontact was working correctly again. I suspect this may have been upgrade cruft that needed culling. Not sure though...
Comment 5 Laurent Montel 2014-06-02 06:35:11 UTC
Git commit c00a041a07ac3a8e10fdefa49dfe581da5bfa4c2 by Montel Laurent.
Committed on 02/06/2014 at 06:34.
Pushed by mlaurent into branch 'KDE/4.13'.

Fix Bug 335118 - Contacts and Mail components are trying to use the same template disregarding user settings

FIXED-IN: 4.13.2

M  +6    -2    grantleetheme/grantleetheme.kcfg
M  +23   -7    grantleetheme/grantleethememanager.cpp
M  +6    -1    grantleetheme/grantleethememanager.h
M  +2    -2    kaddressbook/mainwidget.cpp
M  +1    -4    kaddressbookgrantlee/grantleeutil.cpp
M  +6    -0    kmail/kconf_update/kmail.upd
M  +3    -1    kmail/kmstartup.cpp
M  +3    -3    messageviewer/viewer/viewer_p.cpp

http://commits.kde.org/kdepim/c00a041a07ac3a8e10fdefa49dfe581da5bfa4c2