Skip to content

Fix crash in QQuickQuestionListener

David Edmundson requested to merge work/kns_fix into master

The code path is:

  • we create a Question object
  • we show a prompt
  • we start a nested event loop to get this into a syncronous API
  • we return the result to the question object

The lifespan of the question object is not controlled by the listener, during the nested event loop anything could have happened such as the user closing the parent window which initiated the question and therefore our Question object.

BUG: 464624


Fix isn't ideal, it means we just reply to no-one and the dialog is rather useless. There's a lot of room for KF6 tasks in this repo making the public API async, similar issues exist on the widget side.

I didn't try to reproduce the original bug.

Merge request reports