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

Nicolas Fella <nicolas.fe...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-nm/-/commit/59de1 |ma/plasma-nm/-/commit/8d35c
                   |353dc09190a71caede6107734a5 |d8b4006f760ba95e3ff2ee575fa
                   |717205ab                    |d80776b1

--- Comment #8 from Nicolas Fella <nicolas.fe...@gmx.de> ---
Git commit 8d35cd8b4006f760ba95e3ff2ee575fad80776b1 by Nicolas Fella.
Committed on 09/06/2024 at 17:34.
Pushed by nicolasfella into branch 'Plasma/6.1'.

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
(cherry picked from commit 59de1353dc09190a71caede6107734a5717205ab)

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

https://invent.kde.org/plasma/plasma-nm/-/commit/8d35cd8b4006f760ba95e3ff2ee575fad80776b1

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

Reply via email to