mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
cellMsgDialog: Fix segfault when closing non-blocking Qt dialogs
This commit is contained in:
parent
fcfca6efda
commit
6aff2803e5
1 changed files with 2 additions and 2 deletions
|
@ -214,9 +214,9 @@ error_code open_msg_dialog(bool is_blocking, u32 type, vm::cptr<char> msgString,
|
|||
|
||||
dlg->type = _type;
|
||||
|
||||
dlg->on_close = [callback, userData, &return_code, wptr = std::weak_ptr<MsgDialogBase>(dlg)](s32 status)
|
||||
dlg->on_close = [callback, userData, is_blocking, &return_code, wptr = std::weak_ptr<MsgDialogBase>(dlg)](s32 status)
|
||||
{
|
||||
if (return_code)
|
||||
if (is_blocking && return_code)
|
||||
{
|
||||
*return_code = status;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue