| 722 | } |
| 723 | |
| 724 | void CategoryDelete(uint32 cat) |
| 725 | { |
| 726 | #ifdef AMULE_DAEMON |
| 727 | if (cat > 0) { |
| 728 | theApp->downloadqueue->ResetCatParts(cat); |
| 729 | theApp->glob_prefs->RemoveCat(cat); |
| 730 | if ( theApp->glob_prefs->GetCatCount() == 1 ) { |
| 731 | thePrefs::SetAllcatFilter( acfAll ); |
| 732 | } |
| 733 | theApp->glob_prefs->SaveCats(); |
| 734 | } |
| 735 | #else |
| 736 | if (theApp->amuledlg->m_transferwnd) { |
| 737 | theApp->amuledlg->m_transferwnd->RemoveCategory(cat); |
| 738 | } |
| 739 | #endif |
| 740 | } |
| 741 | |
| 742 | |
| 743 | void PartFile_Swap_A4AF(CPartFile* file) |
nothing calls this directly
no test coverage detected