Browse Source

Go back to row selection mode for jobs list.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19502
pcb_db
Jeff Young 10 months ago
parent
commit
56aacbd661
  1. 10
      kicad/dialogs/panel_jobs.cpp

10
kicad/dialogs/panel_jobs.cpp

@ -487,9 +487,6 @@ void JOBS_GRID_TRICKS::showPopupMenu( wxMenu& menu, wxGridEvent& aEvent )
{
wxArrayInt selectedRows = m_grid->GetSelectedRows();
if( selectedRows.empty() && m_grid->GetGridCursorRow() >= 0 )
selectedRows.push_back( m_grid->GetGridCursorRow() );
menu.Append( JOB_DESCRIPTION, _( "Edit Job Description" ) );
menu.Append( JOB_PROPERTIES, _( "Edit Job Settings..." ) );
menu.AppendSeparator();
@ -512,9 +509,6 @@ void JOBS_GRID_TRICKS::doPopupSelection( wxCommandEvent& event )
{
wxArrayInt selectedRows = m_grid->GetSelectedRows();
if( selectedRows.empty() && m_grid->GetGridCursorRow() >= 0 )
selectedRows.push_back( m_grid->GetGridCursorRow() );
if( event.GetId() == JOB_DESCRIPTION )
{
if( selectedRows.size() > 0 )
@ -584,6 +578,7 @@ PANEL_JOBS::PANEL_JOBS( wxAuiNotebook* aParent, KICAD_MANAGER_FRAME* aFrame,
m_jobsGrid->SetDefaultRowSize( m_jobsGrid->GetDefaultRowSize() + 4 );
m_jobsGrid->OverrideMinSize( 0.6, 0.3 );
m_jobsGrid->SetSelectionMode( wxGrid::wxGridSelectRows );
// 'm' for margins
m_jobsGrid->SetColSize( 0, GetTextExtent( wxT( "99m" ) ).x );
@ -1015,9 +1010,6 @@ void PANEL_JOBS::OnJobButtonDelete( wxCommandEvent& aEvent )
{
wxArrayInt selectedRows = m_jobsGrid->GetSelectedRows();
if( selectedRows.empty() && m_jobsGrid->GetGridCursorRow() >= 0 )
selectedRows.push_back( m_jobsGrid->GetGridCursorRow() );
if( selectedRows.empty() )
return;

Loading…
Cancel
Save