Fix deleting wxPG properties with sub-properties.

If property contains sub-properties they should be deselected prior deleting the property.

See #16617.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2014-10-31 16:04:44 +00:00
parent b1989ee7fe
commit 8a971c12ad
2 changed files with 82 additions and 22 deletions

View File

@@ -697,6 +697,13 @@ protected:
wxPGProperty* BaseGetPropertyByLabel( const wxString& label,
wxPGProperty* parent = NULL ) const;
/** Unselect sub-properties */
void DoRemoveChildrenFromSelection(wxPGProperty* p, bool recursive,
int selFlags);
/** Mark sub-properties as being deleted */
void DoMarkChildrenAsDeleted(wxPGProperty* p, bool recursive);
/** If visible, then this is pointer to wxPropertyGrid.
This shall *never* be NULL to indicate that this state is not visible.
*/