From 3f42c0cbf1c185156eb7c67572ecd8341785590f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 2 Oct 2019 17:06:13 +0200 Subject: [PATCH] Revert accidentally committed file This shouldn't have been part of ef7ab7320611fa27d5b61a0d59623ec03c115e65 --- src/osx/dataview_osx.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/osx/dataview_osx.cpp b/src/osx/dataview_osx.cpp index ee20e3bfaf..60e57b70f2 100644 --- a/src/osx/dataview_osx.cpp +++ b/src/osx/dataview_osx.cpp @@ -220,15 +220,7 @@ bool wxOSXDataViewModelNotifier::ValueChanged(wxDataViewItem const& item, unsign bool wxOSXDataViewModelNotifier::Cleared() { - // As when individual items are deleted, we must ensure that we don't touch - // the model item possibly being edited, as it's not valid any more. - m_DataViewCtrlPtr->SetDeleting(true); - - const bool rc = m_DataViewCtrlPtr->GetDataViewPeer()->Reload(); - - m_DataViewCtrlPtr->SetDeleting(false); - - return rc; + return m_DataViewCtrlPtr->GetDataViewPeer()->Reload(); } void wxOSXDataViewModelNotifier::Resort()