mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix 'cppkore' close event bug
Fix close callback getting called recursively when application gets closed by user. The initial call originated from 'Form::WmClose', second call from 'Form::CheckCloseDialog'. The original call should set the 'called' flag, but never did.
This commit is contained in:
parent
b169a78542
commit
1758abb0aa
5
r5dev/thirdparty/cppnet/cppkore/Form.cpp
vendored
5
r5dev/thirdparty/cppnet/cppkore/Form.cpp
vendored
@ -718,6 +718,11 @@ namespace Forms
|
||||
{
|
||||
OnClosing(EventArgs);
|
||||
OnFormClosing(EventArgs);
|
||||
|
||||
if (EventArgs->Cancel)
|
||||
_DialogResult = DialogResult::None;
|
||||
else
|
||||
SetCalledClosing(true);
|
||||
}
|
||||
|
||||
if (Msg.Msg == WM_QUERYENDSESSION)
|
||||
|
Loading…
x
Reference in New Issue
Block a user