https://bugs.kde.org/show_bug.cgi?id=487135
Nicolas Fella <nicolas.fe...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-nm/-/commit/59de1
                   |                            |353dc09190a71caede6107734a5
                   |                            |717205ab
             Status|ASSIGNED                    |RESOLVED

--- Comment #7 from Nicolas Fella <nicolas.fe...@gmx.de> ---
Git commit 59de1353dc09190a71caede6107734a5717205ab by Nicolas Fella.
Committed on 09/06/2024 at 17:30.
Pushed by nicolasfella into branch 'master'.

Don't call QApplication::processEvents to update size hint

The current code calls setSizePolicy and then resizes the dialog to the
sizeHint.

However sizeHint is only updated asynchronously, so we use
QApplication::processEvents
to force that.

Processing the events this way can cause unforseen havoc, in particular it
causes dialogs
that use WA_DeleteOnClose to be closed too early, causing crashes.

Instead of force processing the events delay the setting of the new size one
event loop iteration

M  +6    -2    vpn/l2tp/l2tpipsecwidget.cpp

https://invent.kde.org/plasma/plasma-nm/-/commit/59de1353dc09190a71caede6107734a5717205ab

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

Reply via email to