void CDirstatDoc::OnCleanupDeletetotrashbin() { CItem *item= GetSelection(); if (item == NULL || item->GetType() != IT_DIRECTORY && item->GetType() != IT_FILE || item->IsRootItem()) return; if (DeletePhysicalItem(item, true)) { RefreshRecyclers(); UpdateAllViews(NULL); } }
void CDirstatDoc::OnCleanupDelete() { CItem *item= GetSelection(); if (item == NULL || item->GetType() != IT_DIRECTORY && item->GetType() != IT_FILE || item->IsRootItem()) return; if (DeletePhysicalItem(item, false)) { SetWorkingItem(GetRootItem()); UpdateAllViews(NULL); } }
void CDirstatDoc::OnCleanupDelete() { // FIXME: Multi-select CItem *item = GetSelection(0); if(NULL == item || item->GetType() != IT_DIRECTORY && item->GetType() != IT_FILE || item->IsRootItem()) { return; } if(DeletePhysicalItem(item, false)) { SetWorkingItem(GetRootItem()); UpdateAllViews(NULL); } }