The error dialog should be avoided for the folder that we have selected for deletion!
Steps to reproduce:
- navigate to /home/elelay/jedit
- expand the coucou folder
- select the BinEd folder
- expand it
- delete it
- An I/O Error dialog appears: /home/elelay/jedit/coucou/BinEd: Unable to list files in this folder.
This doesn't happen when the BinEd folder is not expanded.
Can confirm. Would be better to do nothing or say something like "Directory deleted".