From e41f219131968ecd66f88f594a7365673e3c792c Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 17 Apr 2019 18:25:19 +0200 Subject: [PATCH] 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. --- src/propgrid/propgridiface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/propgrid/propgridiface.cpp b/src/propgrid/propgridiface.cpp index 181c26a310..1b7f3c802b 100644 --- a/src/propgrid/propgridiface.cpp +++ b/src/propgrid/propgridiface.cpp @@ -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 )