-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.5.5, 6.5.8
-
Windows 11
NOTE: I could reproduce this on only Windows 11.
Attached a simplified PyQt script.
We have the slot `dirEntered` which is executed when the dialog fires `directoryEntered` signal. In the script, we are calling `done(QFileDialog.Accepted)` if user selects `Desktop` directory (can be any directory, i used Desktop for an example) and this seems to cause the crash.
This doesn't cause a crash in case of non-native dialogs. The only way I found which can fix this is delaying the `done` call using a `QTimer`.
From my understanding, the underlying windows native dialog is getting destructed while we are still processing the directory changed event.