# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1672456358 0 # Node ID 75f6e21f5a02b8b0255bc1031cfcf78129635591 # Parent 440de3640522e5c3c50f486829b10c535a7ff30d C++: Connected the wrong signal for the HTML result, causing crashes. diff -r 440de3640522 -r 75f6e21f5a02 dw.hpp --- a/dw.hpp Sat Dec 31 00:59:04 2022 +0000 +++ b/dw.hpp Sat Dec 31 03:12:38 2022 +0000 @@ -1000,7 +1000,7 @@ ChangedConnected = false; } if(IsOverridden(HTML::OnResult, this)) { - dw_signal_connect(hwnd, DW_SIGNAL_HTML_CHANGED, DW_SIGNAL_FUNC(_OnResult), this); + dw_signal_connect(hwnd, DW_SIGNAL_HTML_RESULT, DW_SIGNAL_FUNC(_OnResult), this); ResultConnected = true; } else { ResultConnected = false; @@ -1058,7 +1058,7 @@ { _ConnectResult = userfunc; if(!ResultConnected) { - dw_signal_connect(hwnd, DW_SIGNAL_HTML_CHANGED, DW_SIGNAL_FUNC(_OnResult), this); + dw_signal_connect(hwnd, DW_SIGNAL_HTML_RESULT, DW_SIGNAL_FUNC(_OnResult), this); ResultConnected = true; } } @@ -1067,7 +1067,7 @@ { _ConnectResultOld = userfunc; if(!ResultConnected) { - dw_signal_connect(hwnd, DW_SIGNAL_HTML_CHANGED, DW_SIGNAL_FUNC(_OnResult), this); + dw_signal_connect(hwnd, DW_SIGNAL_HTML_RESULT, DW_SIGNAL_FUNC(_OnResult), this); ResultConnected = true; } } @@ -2135,4 +2135,4 @@ App* App::_app = DW_NULL; } /* namespace DW */ -#endif \ No newline at end of file +#endif