A possible improvement to double-click in grids.

This commit is contained in:
Jeff Young 2024-12-31 17:47:59 +00:00
parent 3efa700dc6
commit ac28b246f1
2 changed files with 3 additions and 0 deletions

View File

@ -175,6 +175,7 @@ public:
* re-purpose this hack to work-around the bugs when we want to open an editor.
*/
void ShowEditorOnMouseUp() { m_waitForSlowClick = true; }
void CancelShowEditorOnMouseUp() { m_waitForSlowClick = false; }
/**
* wxWidgets recently added an ASSERT which fires if the position is greater than or equal

View File

@ -516,6 +516,8 @@ void JOBS_GRID_TRICKS::doPopupSelection( wxCommandEvent& event )
bool JOBS_GRID_TRICKS::handleDoubleClick( wxGridEvent& aEvent )
{
m_grid->CancelShowEditorOnMouseUp();
int col = aEvent.GetCol();
int row = aEvent.GetRow();