예제 #1
0
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);
	}
}
예제 #2
0
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);
	}
}
예제 #3
0
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);
    }
}