SourceCode/Bond/BoounionPLC/BoounionPLCDlg.cpp
@@ -113,6 +113,7 @@ if (RX_CODE_SELECT_PLC == code) { CPLC* pPlc; if (pAny->getPtrValue("ptr", (void*&)pPlc)) { if (pPlc != nullptr) { ASSERT(m_pMainContainer != nullptr); if (m_pActiveView == nullptr) { m_pActiveView = (CPlcView*)CreatePlcView(pPlc); @@ -123,6 +124,9 @@ m_pActiveView->SetContext(pPlc); m_pActiveView->SendMessage(WM_NCPAINT, 0, 0); } } else { CloseView(m_pActiveView); } theApp.m_model.setCurrentPlc(pPlc); }