Browse Source

Remove old code from KICAD_MANAGER_FRAME OnCloseWindow

The size is saved inside EDA_BASE_FRAME, and is done before
this function is called, so this code had no effect.
pull/16/head
Ian McInerney 6 years ago
parent
commit
0e54128146
  1. 13
      kicad/kicad_manager_frame.cpp

13
kicad/kicad_manager_frame.cpp

@ -310,23 +310,10 @@ void KICAD_MANAGER_FRAME::OnCloseWindow( wxCloseEvent& Event )
if( Kiway().PlayersClose( false ) )
{
int px, py;
// Save the currently opened file in the file history
if( !GetProjectFileName().empty() )
UpdateFileHistory( GetProjectFileName() );
if( !IsIconized() ) // save main frame position and size
{
GetPosition( &px, &py );
m_FramePos.x = px;
m_FramePos.y = py;
GetSize( &px, &py );
m_FrameSize.x = px;
m_FrameSize.y = py;
}
Event.SetCanVeto( true );
m_leftWin->Show( false );

Loading…
Cancel
Save