Bug 340032 - Selected color for Highlighting Text Styles not saved
Summary: Selected color for Highlighting Text Styles not saved
Status: RESOLVED DUPLICATE of bug 307107
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-16 21:57 UTC by Michael
Modified: 2016-05-28 12:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2014-10-16 21:57:03 UTC
Using the configuration dialog in a KTextEditor-based application, the "Selected" color for any highlighting text style is not saved properly after making changes.

Reproducible: Always

Steps to Reproduce:
From Kate, Kwrite, Kdevelop:
1. Go to the editor configuration dialog
2. Select the "Highlighting Text Styles" tab from "Fonts & Colors" config page
3. Select any highlight language
4. Double click on the color in the "Selected" column and pick a different color than the one currently selected
5. Click on "Save" or "Apply"

Actual Results:  
The color is reverted to its previous value after hitting "Apply" or "OK".  The previous color is still used when selecting the appropriate text in the editor.

Expected Results:  
The color will be saved and reflected in the editor.

Using KTextEditor 5.3.0, with Kate and/or KDevelop, all built from source with Qt 5.3.2.  Tried on Arch Linux (using system-provided KTextEditor) as well as RHEL6 (with custom GCC, Qt5, KF5, etc built from source).  Also present with KTextEditor built from git master.

"Selected" colors from the "Default Text Styles" tab are not affected, and seem to take updates correctly.
Comment 1 Miquel Sabaté 2014-10-18 12:36:28 UTC
This is one of the issues that I pointed out here [1]. I thought that this happened due to the messiness of my system :P Since another one is able to confirm one of my issues, I change the status of this bug to confirmed.

[1] http://lists.kde.org/?l=kwrite-devel&m=141072290316851&w=2
Comment 2 Miquel Sabaté 2014-10-18 12:37:56 UTC
In my initial mail I said that I was using a schema from KDE 4. It's worth noting that I can reproduce this bug with a newly created schema in KF5.
Comment 3 Ivan Shapovalov 2015-03-06 03:25:34 UTC
Can reproduce as well in ktexteditor 5.7.0 / kate 14.12.3. Colors for some entries are properly saved, but a few are not.
Comment 4 Ivan Shapovalov 2015-04-02 00:50:15 UTC
ktexteditor 5.8.0, still there.
Comment 5 Dominik Haumann 2016-05-28 12:36:58 UTC
This was probably fixed in end of October 2015. Please update the KDE Frameworks version to a recent number, e.g. 5.22 or similar. If you still encounter this issue then, please let us know.

*** This bug has been marked as a duplicate of bug 307107 ***