Delete file confirmation does not show

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

PapaGena
Posts: 6
Joined: Sun Jan 26, 2020 3:46 pm

Delete file confirmation does not show

Post by PapaGena »

Hi,
I am unable to get delete file confirmation dialog from XnView Classic - all my files are deleting instantly without prompting.
I have "confirm file deletion" option set but it doesnt help.

Xnview on my installation stores settings in .ini file and I can see this lines inside:

Code: Select all

[File]
ConfirmFileDelete=1
CopyCompanionFile=0
CopyTo=
DeleteRecycleBin=1
DirName_0=
XnView version is 2.49.2 and I got the same on 2.47.

Is there any way to turn it on or enable some extra diagnostics?
Thank you.
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Delete file confirmation does not show

Post by xnview »

and settings of windows recycle bin?
Pierre.
PapaGena
Posts: 6
Joined: Sun Jan 26, 2020 3:46 pm

Re: Delete file confirmation does not show

Post by PapaGena »

I have some expired installation of Executive Undelete on this logical drive.
I think it is strange for any program to skip deletion confirmation because of system settings.
Is there any way to get confirmation back?
Thank you.
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Delete file confirmation does not show

Post by xnview »

you need to change the settings of recycle bin
Pierre.
PapaGena
Posts: 6
Joined: Sun Jan 26, 2020 3:46 pm

Re: Delete file confirmation does not show

Post by PapaGena »

What settings should I change?

It looks a bit strange to me - I have to change external system options to obtain dialog from XnView.

I took a look on Changelog viewtopic.php?f=35&t=39772 but was unable to find note about this behaviour.
Could you please tell me XnView version introducing this so I will be able to downgrade to older version and resolve my issue?
Thank you.
User avatar
xnview
Author of XnView
Posts: 44470
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Delete file confirmation does not show

Post by xnview »

it was always like this, Xn use windows API to delete files, and i can't override the settings of recycle bin. Right click on recycle bin
Pierre.
PapaGena
Posts: 6
Joined: Sun Jan 26, 2020 3:46 pm

Re: Delete file confirmation does not show

Post by PapaGena »

Is it possible to know XnView version that introduced such behaviour?
I am ready to downgrade.
cday
XnThusiast
Posts: 4134
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Delete file confirmation does not show

Post by cday »

PapaGena wrote: Thu Mar 05, 2020 10:09 am Is it possible to know XnView version that introduced such behaviour?
Pierre is saying that nothing has changed in XnView...

If you wish to test earlier versions they can be downloaded from this link: Old versions
PapaGena
Posts: 6
Joined: Sun Jan 26, 2020 3:46 pm

Re: Delete file confirmation does not show

Post by PapaGena »

Thank you very much!
I will try.
tcosmas
Posts: 3
Joined: Sat Nov 10, 2018 9:25 pm

Re: Delete file confirmation does not show

Post by tcosmas »

In XnView Classic, Tools -> Options ->General -> File Operations,
Check "Confirm file delete" and "Delete to Recycle Bin"

Right-click on the Windows Recycle Bin,
On the General tab, make sure you DO NOT SELECT have "Don't move files to Recycle Bin..."
Check the box "Display delete confirmation dialog"

In theory, that SHOULD cause Windows to pop up a dialog box confirming that you want to delete the file. I have just tested this and it seems to be working now for me!

I use XnView to view pages automatically displayed by a text editor for converting images through OCR and spell check, etc. into TXT, HTML and Epub versions. Quite often, I have clicked on a page to delete some extra space or other scanno. Hit delete and the XnView was the active window. So,, away went the PNG for the page I was 'editing' in the other window! Thanks for asking this question and getting enough info to (hopefully) STOP Windows from deleting the images!
PapaGena
Posts: 6
Joined: Sun Jan 26, 2020 3:46 pm

Re: Delete file confirmation does not show

Post by PapaGena »

Finally, I haven't find old version with previous behaviour.

I have some special software that replaces standard Recycle Bin and it doesn't have such option.

My suggestion is to monitor the file deletion event as early as possible - that is, when the program realizes that I pressed the delete button. And do not delegate this check to external system infrastructure, which can be changed by installing third-party programs.