Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ddialog's lambda func may cause segfault
During call DDialog::exec(), the onButtonClickedClose flag is set to true by default. At this point, DDialog connect lambda function captures the **temporary variable**, and does not disconnect the signal after the exec() call ends. As a result of calling the same dialog object multiple times, other addresses may be **overwritten** by previous temporary variable writes, causing segfault (crashes). Use done() to set the return value instead of via connect lambda function. Log: Fixed a bug that may cause segfault.
- Loading branch information