if (retval == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
ToolPath = file.getPath();
if (!ToolPath.endsWith(File.separator)) {
ToolPath += File.separator;
<BUG>}
if (MyBoardInformation.fpga.getVendor() == FPGAClass.VendorAltera) {
if (MySettings.SetAlteraToolPath(ToolPath)) {</BUG>
HDLOnly.setEnabled(true);
MySettings.SetHdlOnly(false);

if (retval == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
ToolPath = file.getPath();
if (!ToolPath.endsWith(File.separator)) {
ToolPath += File.separator;
}
if (MySettings.setToolPath(MyBoardInformation.fpga.getVendor(), ToolPath)) {
HDLOnly.setEnabled(true);
MySettings.SetHdlOnly(false);
