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

wolthera <griffinval...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/krita/commit/fcbb682c1 |hics/krita/commit/1cbfa33b2
                   |c4256615446c62eb5b7e183fae9 |02b178ff34df6f0f379acf84190
                   |2554                        |0f12

--- Comment #13 from wolthera <griffinval...@gmail.com> ---
Git commit 1cbfa33b202b178ff34df6f0f379acf841900f12 by Wolthera van Hövell.
Committed on 25/11/2021 at 18:22.
Pushed by woltherav into branch 'master'.

Fix saving palette on quit, specifically avoiding the potential crash.

The save-with-user-input flow requires a widget to parent it's potential
messages and other widgets to, but when we're closing the application
no such potential widgets exists anymore, leading to a crash.

Therefore, we'll just save the palette regularly, but only if it already
has a resource-version. I don't think it's currently possible to have
a palette without resource version, so that should suffice.

This also seems to fix actually saving the resource upon close, which was
the original bug to begin with.


(cherry picked from commit fcbb682c1c4256615446c62eb5b7e183fae92554)

M  +9    -3    libs/ui/KisPaletteEditor.cpp

https://invent.kde.org/graphics/krita/commit/1cbfa33b202b178ff34df6f0f379acf841900f12

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

Reply via email to