MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / Clear

Method Clear

AdaptixClient/Source/UI/Widgets/SessionsTableWidget.cpp:298–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void SessionsTableWidget::Clear() const
299{
300 QList<Agent*> toDelete;
301 {
302 QWriteLocker locker(&adaptixWidget->AgentsMapLock);
303 toDelete = adaptixWidget->AgentsMap.values();
304 adaptixWidget->AgentsMap.clear();
305 }
306
307 qDeleteAll(toDelete);
308 agentsModel->clear();
309
310 checkOnlyActive->setChecked(false);
311 inputFilter->clear();
312 comboAgentType->clear();
313 comboAgentType->addItem("All types");
314}
315
316
317

Callers 1

actionConsoleDeleteMethod · 0.45

Calls 3

clearMethod · 0.45
setCheckedMethod · 0.45
addItemMethod · 0.45

Tested by

no test coverage detected