]> git.saurik.com Git - wxWidgets.git/commitdiff
getting out for 'addded' events early enough
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 21 Sep 2006 05:38:12 +0000 (05:38 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 21 Sep 2006 05:38:12 +0000 (05:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/listctrl_mac.cpp

index 16981635c9aa9a6680a06b0dc8f86cb0cbae2a81..31dfaa7fa8b61f21b3a8458a40d2d727b03f3109 100644 (file)
@@ -1269,6 +1269,12 @@ void wxMacListCtrlItem::Notification(wxMacDataItemBrowserControl *owner ,
         delete this;
         return;
     }
+    else if ( message == kDataBrowserItemAdded )
+    {
+        // we don't issue events on adding, the item is not really stored in the list yet, so we
+        // avoid asserts by gettting out now
+        return  ;
+    }
 
     wxListCtrl *list = wxDynamicCast( owner->GetPeer() , wxListCtrl );
     if ( list ){