Don't toggle checkboxes selected rows if only one row is selected
This commit is contained in:
parent
e294fe2074
commit
90996d0698
|
@ -170,7 +170,7 @@ void GRID_TRICKS::onGridCellLeftClick( wxGridEvent& aEvent )
|
||||||
|
|
||||||
// We only want to apply this to whole rows. If the grid allows selecting individual
|
// We only want to apply this to whole rows. If the grid allows selecting individual
|
||||||
// cells, and the selection contains dijoint cells, skip this logic.
|
// cells, and the selection contains dijoint cells, skip this logic.
|
||||||
if( !m_grid->GetSelectedCells().IsEmpty() || !m_sel_row_count )
|
if( !m_grid->GetSelectedCells().IsEmpty() || m_sel_row_count < 2 )
|
||||||
{
|
{
|
||||||
// We preserved the selection in toggleCell above; so clear it now that we know
|
// We preserved the selection in toggleCell above; so clear it now that we know
|
||||||
// we aren't doing a multi-select edit
|
// we aren't doing a multi-select edit
|
||||||
|
|
Loading…
Reference in New Issue