SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp
@@ -489,11 +489,10 @@ theApp.m_model.addPlc(szName, "192.168.1.188", 1001); } else if (id == IDC_BUTTON_DELETE) { static int i = 0; i += 1; char szName[256]; sprintf_s(szName, 256, "PLC%d", i); theApp.m_model.removePlc(szName); CPLC* pPlc = theApp.m_model.getCurrentPlc(); if (pPlc != nullptr) { theApp.m_model.removePlc(pPlc->getName().c_str()); } } else if (id == IDC_BUTTON_SETTINGS) {