| 456 | } |
| 457 | |
| 458 | void VariableCollection::updateAutoUpdate(IDebugSession* session) |
| 459 | { |
| 460 | if (!session) session = currentSession(); |
| 461 | qCDebug(DEBUGGER) << session; |
| 462 | if (!session) return; |
| 463 | |
| 464 | if (!m_widgetVisible) { |
| 465 | session->variableController()->setAutoUpdate(IVariableController::UpdateNone); |
| 466 | } else { |
| 467 | QFlags<IVariableController::UpdateType> t = IVariableController::UpdateNone; |
| 468 | if (locals()->isExpanded()) t |= IVariableController::UpdateLocals; |
| 469 | if (watches()->isExpanded()) t |= IVariableController::UpdateWatches; |
| 470 | session->variableController()->setAutoUpdate(t); |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | VariableCollection::~ VariableCollection() |
| 475 | { |
nothing calls this directly
no test coverage detected