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

Method itemRemove

AdaptixClient/Source/UI/Dialogs/DialogConnect.cpp:422–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void DialogConnect::itemRemove()
423{
424 auto* item = cardWidget->currentItem();
425 if (!item)
426 return;
427
428 QString project = item->data(CardListWidget::TitleRole).toString();
429 Storage::RemoveAllListenerProfiles(project);
430 Storage::RemoveAllAgentProfiles(project);
431 GlobalClient->storage->RemoveProject(project);
432 delete cardWidget->takeItem(cardWidget->row(item));
433 loadProjects();
434}
435
436void DialogConnect::onProfileSelected()
437{

Callers

nothing calls this directly

Calls 2

RemoveProjectMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected