fixed #582 show dialog when clicking delete button