X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27c1f235ba00917cc3599ad8e40cdb95afef2c9e..4566dcbe24d452b729b0bad3f72ad63e6a60037c:/src/propgrid/manager.cpp?ds=sidebyside diff --git a/src/propgrid/manager.cpp b/src/propgrid/manager.cpp index 444902899c..158cc557ab 100644 --- a/src/propgrid/manager.cpp +++ b/src/propgrid/manager.cpp @@ -423,8 +423,9 @@ wxPropertyGridManager::~wxPropertyGridManager() { END_MOUSE_CAPTURE - m_pPropGrid->DoSelectProperty(NULL); - m_pPropGrid->m_pState = NULL; + //m_pPropGrid->ClearSelection(); + delete m_pPropGrid; + m_pPropGrid = NULL; size_t i; for ( i=0; im_selected ) + if ( m_pPropGrid->GetSelection() ) { if ( !m_pPropGrid->ClearSelection() ) return false; @@ -725,10 +726,10 @@ void wxPropertyGridManager::SetColumnCount( int colCount, int page ) size_t wxPropertyGridManager::GetPageCount() const { - if ( !(m_iFlags & wxPG_MAN_FL_PAGE_INSERTED) ) - return 0; + if ( !(m_iFlags & wxPG_MAN_FL_PAGE_INSERTED) ) + return 0; - return m_arrPages.size(); + return m_arrPages.size(); } // ----------------------------------------------------------------------- @@ -883,6 +884,19 @@ bool wxPropertyGridManager::IsPageModified( size_t index ) const // ----------------------------------------------------------------------- +bool wxPropertyGridManager::IsPropertySelected( wxPGPropArg id ) const +{ + wxPG_PROP_ARG_CALL_PROLOG_RETVAL(false) + for ( unsigned int i=0; iDoIsPropertySelected(p) ) + return true; + } + return false; +} + +// ----------------------------------------------------------------------- + wxPGProperty* wxPropertyGridManager::GetPageRoot( int index ) const { wxASSERT( index >= 0 );