diff --git a/src/osx/dataview_osx.cpp b/src/osx/dataview_osx.cpp index 799e752e15..fd861deb39 100644 --- a/src/osx/dataview_osx.cpp +++ b/src/osx/dataview_osx.cpp @@ -390,7 +390,10 @@ bool wxDataViewCtrl::AssociateModel(wxDataViewModel* model) // We could have been associated with another model previously, break the // association in this case. if ( m_ModelNotifier ) + { m_ModelNotifier->GetOwner()->RemoveNotifier(m_ModelNotifier); + m_ModelNotifier = NULL; + } if (wxDataViewCtrlBase::AssociateModel(model) && dataViewWidgetPtr->AssociateModel(model)) {