Browse Source

fpviewer: Second go at preventing focus stealing

Fixes: lp:1841565
* https://bugs.launchpad.net/kicad/+bug/1841565
pull/15/head
Seth Hillbrand 6 years ago
parent
commit
69b6052d6f
  1. 2
      pcbnew/footprint_viewer_frame.cpp

2
pcbnew/footprint_viewer_frame.cpp

@ -245,6 +245,8 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
// after changing something to the aui manager call Update() to reflect the changes
m_auimgr.Update();
// The canvas should not steal the focus from the list boxes
GetCanvas()->SetCanFocus( false );
GetCanvas()->GetGAL()->SetAxesEnabled( true );
GetCanvas()->GetView()->SetScale( GetZoomLevelCoeff() / GetScreen()->GetZoom() );
ActivateGalCanvas();

Loading…
Cancel
Save