DIALOG_PLOT: use a short living quasimodal dialog instead of a long living window.

In this case, a quasimodal dialog is the right way.
Fixes #10650
https://gitlab.com/kicad/code/kicad/issues/10650
This commit is contained in:
jean-pierre charras 2022-01-29 13:14:22 +01:00
parent 98b9600373
commit 43f5a7c746
1 changed files with 2 additions and 9 deletions

View File

@ -1466,15 +1466,8 @@ void PCB_EDIT_FRAME::ToPlotter( int aID )
SetPlotSettings( plotSettings );
// Force rebuild the dialog if currently open because the old dialog can be not up to date
// if the board (or units) has changed
wxWindow* dlg = wxWindow::FindWindowByName( DLG_WINDOW_NAME );
if( dlg )
dlg->Destroy();
dlg = new DIALOG_PLOT( this );
dlg->Show( true );
DIALOG_PLOT dlg( this );
dlg.ShowQuasiModal( );
}