|
@@ -441,7 +441,8 @@ void MainAndSecondaryCamerasWnd::timerEvent(QTimerEvent* event)
|
|
|
|
|
|
void MainAndSecondaryCamerasWnd::GetCurrentSelectSlots(int groupId, int nIndex)
|
|
|
{
|
|
|
- if (m_pMainCameraBind == nullptr)
|
|
|
+ int nOnClickGroupId = groupId - 1; // 这里new 有些是0,有些是1 暂时选择
|
|
|
+ if (m_pMainCameraBind == nullptr || m_allGroup.size() < nOnClickGroupId)
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
@@ -449,9 +450,6 @@ void MainAndSecondaryCamerasWnd::GetCurrentSelectSlots(int groupId, int nIndex)
|
|
|
// 绑定操作,用来初始化
|
|
|
ST_CURRENT_SELECT_GROUP _curr;
|
|
|
_curr.isBond = true;
|
|
|
-
|
|
|
- //2. 开始干活
|
|
|
- int nOnClickGroupId = groupId - 1; // 这里new 有些是0,有些是1 暂时选择
|
|
|
if (m_pMainCameraBind->m_vecCamera.size() > nOnClickGroupId)
|
|
|
{
|
|
|
_curr.nCurrentCameraId = m_pMainCameraBind->m_vecCamera[nOnClickGroupId].iCameraId;
|