https://bugs.kde.org/show_bug.cgi?id=484066

Dmitry Kazakov <dimul...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/krita/-/commit/49dc9e0
                   |                            |50aeb05f7a313f5766c5edd2d56
                   |                            |38a6b7

--- Comment #4 from Dmitry Kazakov <dimul...@gmail.com> ---
Git commit 49dc9e050aeb05f7a313f5766c5edd2d5638a6b7 by Dmitry Kazakov, on
behalf of Igor Danilets.
Committed on 29/03/2024 at 11:10.
Pushed by dkazakov into branch 'master'.

Fix crash when pasting font family in TextEditor

Problem:

Pasting a new font famyly and hitting Save or Discard while the
FontFamilyComboBox is still in editing focus crashes.
After pasting font family, the font is also not applied until you
press enter or change focus.

Solution:

Write the validator of the font familyies.
Validator is triggered whenever the text is changed (including pasting),
and if font famyly is correct, the font changes immediately.
So, there are no conditions that provoke a crash.

M  +1    -0    libs/widgetutils/CMakeLists.txt
A  +41   -0    libs/widgetutils/KisFontFamilyValidator.cpp     [License:
GPL(v3.0+)]
A  +27   -0    libs/widgetutils/KisFontFamilyValidator.h     [License:
GPL(v3.0+)]
M  +15   -0    libs/widgetutils/kis_font_family_combo_box.cpp
M  +3    -0    libs/widgetutils/kis_font_family_combo_box.h

https://invent.kde.org/graphics/krita/-/commit/49dc9e050aeb05f7a313f5766c5edd2d5638a6b7

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to