7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-20 21:31:42 +00:00

Array dialog: if validation fails, don't close - allow user to fix it

This commit is contained in:
John Beard 2025-01-16 18:19:57 +08:00
parent 7116ed6917
commit d677b84de1

View File

@ -492,8 +492,10 @@ bool DIALOG_CREATE_ARRAY::TransferDataFromWindow()
ret = false;
}
// This dialog is not modal, so close it now
Close();
// This dialog is not modal, so close it now if successful
if( ret )
Close();
return ret;
}