]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dataview.cpp
Use IsOk() instead of Ok()
[wxWidgets.git] / src / mac / carbon / dataview.cpp
index 2f993637e205556f22d2fcd1629781a58a5457ec..9b4a88fff9040c9c3637753e8faab69c082bced9 100644 (file)
@@ -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)