you've got the same item.m_bIsFolder check in the dialog. can save a few lines of dupe code by wrapping it in a Delete() method in this class