Do not generate wxEVT_PG_SELECTED with direct ClearSelection() and SelectProperty() calls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-08-11 16:53:05 +00:00
parent 90666795d4
commit 01b5ad3b50
7 changed files with 84 additions and 38 deletions

View File

@@ -220,7 +220,7 @@ wxPGProperty* wxPropertyGridInterface::ReplaceProperty( wxPGPropArg id, wxPGProp
bool wxPropertyGridInterface::ClearSelection( bool validation )
{
int flags = 0;
int flags = wxPG_SEL_DONT_SEND_EVENT;
if ( !validation )
flags |= wxPG_SEL_NOVALIDATE;
@@ -297,7 +297,7 @@ bool wxPropertyGridInterface::ExpandAll( bool doExpand )
if ( GetSelection() && GetSelection() != state->DoGetRoot() &&
!doExpand )
{
pg->ClearSelection(false);
pg->DoClearSelection();
}
wxPGVIterator it;
@@ -579,7 +579,7 @@ void wxPropertyGridInterface::Sort( int flags )
{
wxPropertyGrid* pg = GetPropertyGrid();
pg->ClearSelection(false);
pg->DoClearSelection();
unsigned int pageIndex = 0;
@@ -1091,9 +1091,9 @@ bool wxPropertyGridInterface::RestoreEditableState( const wxString& src, int res
if ( pgSelectionSet )
{
if ( newSelection )
pg->SelectProperty(newSelection);
pg->DoSelectProperty(newSelection);
else
pg->ClearSelection();
pg->DoClearSelection();
}
if ( selectedPage != -1 )