From 90996d0698db9035b65b4e3671f8ff94268a9ba3 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Mon, 5 Sep 2022 16:50:54 -0400 Subject: [PATCH] Don't toggle checkboxes selected rows if only one row is selected --- common/grid_tricks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/grid_tricks.cpp b/common/grid_tricks.cpp index df239a40c0..4b557087a2 100644 --- a/common/grid_tricks.cpp +++ b/common/grid_tricks.cpp @@ -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 // 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 aren't doing a multi-select edit