Skip to content
Commit 4d81e07f authored by Jakob Petsovits's avatar Jakob Petsovits
Browse files

kcmodule: Avoid crashing in KAuth::ExecuteJob after closing window

Use a blocking job->exec() instead to access charge thresholds.

Async is nice, but will crash when pressing OK instead of Apply.
The window which has been set as parent window for the KAuth helper
dialog will disappear, and KAuth::ExecuteJob will crash inside
QWaylandIntegration::createPlatformWindow() which QWindow::winId()
depends on but fails. On Qt 6.6.1 at least.

Let's avoid this crash until there's a better fix.
parent ff77ecc7
Pipeline #560482 passed with stage
in 1 minute and 16 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment