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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/krita/commit/fcbb682c1
                   |                            |c4256615446c62eb5b7e183fae9
                   |                            |2554

--- Comment #12 from wolthera <griffinval...@gmail.com> ---
Git commit fcbb682c1c4256615446c62eb5b7e183fae92554 by Wolthera van Hövell.
Committed on 25/11/2021 at 18:21.
Pushed by woltherav into branch 'krita/5.0'.

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.

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

https://invent.kde.org/graphics/krita/commit/fcbb682c1c4256615446c62eb5b7e183fae92554

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

Reply via email to