| 420 | } |
| 421 | |
| 422 | void 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 | |
| 436 | void DialogConnect::onProfileSelected() |
| 437 | { |
nothing calls this directly
no test coverage detected