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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from [email protected] ---
Created attachment 189530
  --> https://bugs.kde.org/attachment.cgi?id=189530&action=edit
Fix closing windows cause crash

I decided to look into this a bit today. Attached a patch with a fix, 

It is mainly this line in KisWindowLayoutResource.cpp that cause the crash,
when closing the windows:

https://invent.kde.org/graphics/krita/-/blame/cb158acfc714301289a63bff7aa892eb8c4f1f23/libs/ui/KisWindowLayoutResource.cpp#L157

I shuffled some things around in  openNecessaryWindows(),
closeUnneededWindows(). And moved closeUnneededWindows() to the end. This seems
to fix the crash.

I can submit a PR if you want, or you can take my patch and investigate
further.

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

Reply via email to