0.96.5: A folder is deleted instead of selected files

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, xnview, Dreamer

Post Reply
PeterM
Posts: 7
Joined: Thu Jan 24, 2019 9:49 am

0.96.5: A folder is deleted instead of selected files

Post by PeterM »

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.
User avatar
xnview
Author of XnView
Posts: 33862
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.96.5: A folder is deleted instead of selected files

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 33862
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.96.5: A folder is deleted instead of selected files

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.97.0. Please check and confirm the bug fix here.
Pierre.
PeterM
Posts: 7
Joined: Thu Jan 24, 2019 9:49 am

Re: 0.96.5: A folder is deleted instead of selected files

Post by PeterM »

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.
User avatar
xnview
Author of XnView
Posts: 33862
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.96.5: A folder is deleted instead of selected files

Post by xnview »

PeterM 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.
this bug is the same as this one
Pierre.
PeterM
Posts: 7
Joined: Thu Jan 24, 2019 9:49 am

Re: 0.96.5: A folder is deleted instead of selected files

Post by PeterM »

It works fine in 0.97.1. Thank you
Post Reply