Skip to content
Commit 5227487c authored by Chusslove Illich's avatar Chusslove Illich
Browse files

Match font style with human-readable style name using custom identifier.

Style strings returned by QFontDatabase::styleString() are sometimes
not surviving serialization/deserialization roundtrip, which can cause
wrong style to be highlighted in style box when the dialog is opened.
If the user then closes the dialog without touching the style box,
the resulting font style is changed. To avoid this, construct
internal style identifiers and use them for matching instead.

Solution provided by Casper Boemann.

BUG: 305747
FIXED-IN: 4.9.1
parent a3625201
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment