Remove useless IsCellEditControlEnabled() checks

There is no need to do this before calling DisableCellEditControl() as
it won't do anything if the cell edit control is already disabled.
This commit is contained in:
Vadim Zeitlin
2020-06-28 00:21:23 +02:00
parent 63643eb122
commit 181747f462

View File

@@ -5222,8 +5222,7 @@ void wxGrid::ClearGrid()
{
if ( m_table )
{
if (IsCellEditControlEnabled())
DisableCellEditControl();
DisableCellEditControl();
m_table->Clear();
if ( ShouldRefresh() )
@@ -5240,8 +5239,7 @@ wxGrid::DoModifyLines(bool (wxGridTableBase::*funcModify)(size_t, size_t),
if ( !m_table )
return false;
if ( IsCellEditControlEnabled() )
DisableCellEditControl();
DisableCellEditControl();
return (m_table->*funcModify)(pos, num);