Browse Source

A possible improvement to double-click in grids.

pcb_db
Jeff Young 10 months ago
parent
commit
ac28b246f1
  1. 1
      include/widgets/wx_grid.h
  2. 2
      kicad/dialogs/panel_jobs.cpp

1
include/widgets/wx_grid.h

@ -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

2
kicad/dialogs/panel_jobs.cpp

@ -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();

Loading…
Cancel
Save