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:
parent
98b9600373
commit
43f5a7c746
|
@ -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( );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue