https://bugs.kde.org/show_bug.cgi?id=298491
Bug ID: 298491 Severity: normal Version: unspecified Priority: NOR Assignee: [hidden email] Summary: Typos in templatemanager.cpp cause locationprovincestate and contactprovincestate not to be loaded or saved to templates Classification: Unclassified OS: Linux Reporter: [hidden email] Hardware: Compiled Sources Status: UNCONFIRMED Component: general Product: digikam See below. Reproducible: Always Steps to Reproduce: 1. Create a template and fill out the "Location > Province/State" and "Contact > Province/State" fields 2. Save the template and exit digikam 3. Reopen digikam and open the same template Actual Results: The "Location > Province/State" and "Contact > Province/State" fields are empty. Expected Results: The "Location > Province/State" and "Contact > Province/State" fields should load the values saved into the template. I believe both issues are caused by typos in core/libs/template/templatemanager.cpp. The first issue is at line 230: else if (name2 == QString::fromLatin1("clocationprovincestate")) should be else if (name2 == QString::fromLatin1("locationprovincestate")) The second issue is an inconsistency between line 258, where the field is called "contactprovincestate": else if (name2 == QString::fromLatin1("contactprovincestate")) and lines 417-419, where it's called "contactprovinceSstate": QDomElement contactprovinceSstate = doc.createElement(QString::fromLatin1("contactprovinceSstate")); contactprovinceSstate.setAttribute(QString::fromLatin1("value"), t.contactInfo().provinceState); elem.appendChild(contactprovinceSstate); Line numbers refer to the current version of the file in git. I'm guessing that fixing the issues in templatemanager.cpp isn't enough and that it's also necessary to fix existing templates in ~/.kde4/share/apps/digikam/template.xml, so I preferred to provide a detailed description of the issue rather than a (possibly incomplete) patch. This issue is reported against the current version in git but it also seems to be present in the 2.5.0 release. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
https://bugs.kde.org/show_bug.cgi?id=298491
Smit Mehta <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |[hidden email] Version|unspecified |2.6.0 Ever confirmed|0 |1 --- Comment #1 from Smit Mehta <[hidden email]> --- I confirm it. I will patch the typos in a while. @Gilles : Is there a way to modify the existing .xml files in user's comp? -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=298491
--- Comment #2 from Smit Mehta <[hidden email]> --- Git commit b9b253626eca171da6c04b68ac015dd02f165667 by smit mehta. Committed on 20/04/2012 at 17:07. Pushed by smitmehta into branch 'master'. Typos fixed M +4 -4 libs/template/templatemanager.cpp http://commits.kde.org/digikam/b9b253626eca171da6c04b68ac015dd02f165667 -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=298491
Gilles Caulier <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] --- Comment #3 from Gilles Caulier <[hidden email]> --- Smit, Users need to modify xml file hosted in ~/.kde4/share/apps/digikam Gilles -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=298491
--- Comment #4 from Smit Mehta <[hidden email]> --- Okay then, I dont think we can do anymore here. Shall I close the bug? -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=298491
--- Comment #5 from Gilles Caulier <[hidden email]> --- yes, let's go. Don't forget to patch NEWS file... Gilles -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=298491
Smit Mehta <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Latest Commit| |http://commits.kde.org/digi | |kam/af9ebe0ad1bdbc4f5408579 | |4273a77c434cf2258 --- Comment #6 from Smit Mehta <[hidden email]> --- Git commit af9ebe0ad1bdbc4f54085794273a77c434cf2258 by smit mehta. Committed on 20/04/2012 at 19:28. Pushed by smitmehta into branch 'master'. update M +2 -0 NEWS http://commits.kde.org/digikam/af9ebe0ad1bdbc4f54085794273a77c434cf2258 -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=298491
Gilles Caulier <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Version Fixed In| |2.6.0 -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=298491
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Component|general |Portability -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=298491
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Portability |Usability-i18n -- You are receiving this mail because: You are the assignee for the bug. |
Free forum by Nabble | Edit this page |