Fix crash when reparenting the focused window to another TLW
If the window stored as m_winLastFocused in one TLW was reparented to another one and then destroyed, this pointer to it wasn't updated and became dangling. Fix this by using a safe weak reference instead of raw pointer for m_winLastFocused. This ensures that it can never be used when it becomes invalid. Closes #17980.
This commit is contained in:
@@ -214,6 +214,7 @@ wxMSW:
|
||||
- Fix updating radio groups when non-radio item is inserted to wxMenu.
|
||||
- Fix autoselecting the contents of wxTextCtrl with wxWANTS_CHARS style.
|
||||
- Implement SetIcon(), SetPosition(), GetPosition() for native wxProgressDialog.
|
||||
- Fix crash when reparenting the currently focused window to another TLW.
|
||||
|
||||
wxOSX:
|
||||
|
||||
|
Reference in New Issue
Block a user