X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbe4a80c57a77b249ef32117efe9fd923066f958..5ec69e9666e300c9ba210812a11ca5dc9111b5f9:/src/mac/carbon/dataview.cpp diff --git a/src/mac/carbon/dataview.cpp b/src/mac/carbon/dataview.cpp index 2f993637e2..9b4a88fff9 100644 --- a/src/mac/carbon/dataview.cpp +++ b/src/mac/carbon/dataview.cpp @@ -367,7 +367,12 @@ public: virtual bool Cleared(void) { - return (this->m_dataViewControlPtr->RemoveItems() == noErr); + bool noFailureFlag = (this->m_dataViewControlPtr->RemoveItems() == noErr); + wxDataViewItem item; + wxDataViewItemArray array; + GetOwner()->GetChildren( item, array ); + ItemsAdded( item, array ); + return noFailureFlag; } /* Cleared(void) */ virtual void Resort(void)