getting out for 'addded' events early enough

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2006-09-21 05:38:12 +00:00
parent 639e001d87
commit cb305e1e9f

View 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 ){