XnView: MP 0.96.5 - 64-bit
OS: Windows 10 - 64-bit
Effect: Sometimes, XnView deletes the selected folder in the Folder pane instead of the selected files in the Thumbnails pane.
If you press CTRL+A on a folder selected in the Folders pane, the files are correctly selected but not activated (focused). The folder stays focused and this has some serious consequences. For example, if you then press DEL to delete the selected files, the folder will be deleted instead of the files. This is not expected.
This happened to me several times and I had to recover some mistakenly deleted sub-folders from the recycle bin. The last time my bin was full so I lost some files for good.
The solution seems to be simple, just activate (set focus) the selected files after CTRL+A. This is how Windows file explorer and other applications work.
To reproduce:
1. Browse a folder A with some image files (JPEG format) and with a sub-folder B. The folder A will be focused in the Folders pane.
2. In the Thumbnails pane, the JPEG files are shown. The sub-folder B is not displayed because Folders are set as not Visible in Settings - Browser - File list - Custom filter. And "Custom" is used in View - Filter by.
3. Select all image files by pressing CTRL+A. The image files are correctly selected. But they are not focused, the folder A is still focused, which is wrong.
4. Try to delete the selected files by pressing DEL.
Actual behaviour (bug): XnView deletes the entire focused folder A including the sub-folder B which was not selected.
Expected behaviour: The selected files should be focused in step 3 and deleted in step 4.
0.96.5: A folder is deleted instead of selected files
Moderators: helmut, XnTriq, xnview, Dreamer
Re: 0.96.5: A folder is deleted instead of selected files

Pierre.
Re: 0.96.5: A folder is deleted instead of selected files
This problem is supposed to be fixed in XnView MP 0.97.0. Please check and confirm the bug fix here.
Pierre.
Re: 0.96.5: A folder is deleted instead of selected files
Thank you. It works partially. When I click on a folder and press CTRL+A, all files are selected and the folder looses focus. When I press DEL, the folder is no longer deleted. But unfortunately, neither are the files deleted. Nothing happens. I need to press TAB to focus the first file and then DEL works for selected files.
Re: 0.96.5: A folder is deleted instead of selected files
this bug is the same as this onePeterM wrote: Sun Oct 04, 2020 6:40 pm Thank you. It works partially. When I click on a folder and press CTRL+A, all files are selected and the folder looses focus. When I press DEL, the folder is no longer deleted. But unfortunately, neither are the files deleted. Nothing happens. I need to press TAB to focus the first file and then DEL works for selected files.
Pierre.
Re: 0.96.5: A folder is deleted instead of selected files
It works fine in 0.97.1. Thank you