MCPcopy Create free account
hub / github.com/amule-project/amule / CategoryDelete

Function CategoryDelete

src/GuiEvents.cpp:724–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 5

GetCatCountMethod · 0.80
SaveCatsMethod · 0.80
ResetCatPartsMethod · 0.45
RemoveCatMethod · 0.45
RemoveCategoryMethod · 0.45

Tested by

no test coverage detected