Notify wxPropertyGrid about selected property while restoring editable state

Grid should be notified about selected property on actually selected page
to e.g. update property description.
This commit is contained in:
Artur Wieczorek
2019-04-17 18:25:19 +02:00
parent 6bcf1bad71
commit e41f219131

View File

@@ -1181,7 +1181,10 @@ bool wxPropertyGridInterface::RestoreEditableState( const wxString& src, int res
if ( selectedPage != -1 )
{
DoSelectPage(selectedPage);
if ( DoSelectPage(selectedPage) )
{
pg->SendEvent(wxEVT_PG_SELECTED, pg->GetSelectedProperty());
}
}
if ( vx >= 0 )