mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
A possible improvement to double-click in grids.
This commit is contained in:
parent
3efa700dc6
commit
ac28b246f1
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user