Such dialogs must be destroyed before the main event loop starts running to avoid problems with the temporary event loop created by the dialog internally. See #17983.
Such dialogs must be destroyed before the main event loop starts running to avoid problems with the temporary event loop created by the dialog internally. See #17983.