If no file was selected, don't show dialog

To avoid confirmation when user doesn't selected any file to delete...