Wrong Part of XnView Window Gains Focus

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

Moderators: helmut, XnTriq, xnview

Post Reply
ehathgepiurhe
Posts: 34
Joined: Thu Sep 08, 2005 8:50 am

Wrong Part of XnView Window Gains Focus

Post by ehathgepiurhe »

Hi,

This is a bit of an odd one, and it is hard to describe. I do have a theory on why it happens though. It has happened to me a few times now, so I thought I should post about it as in some cases, you can lose data from it. Ok, so I open XnView. I then go into a folder with some images. The folder has some images in the root of it, and some sub-folders. I want to drag the images from the root of the folder into the various sub-folders. What I do is to click on an image in the thumbnail pane, and then drag it up to one of the folders, also in the thumbnail pane. Now, suppose that file already has a copy in that folder. XnView detects that a file with that name exists, and pops up a dialog asking me what to do. All ok so far.

Here is where things go wrong. I click Skip, as I can see the files are duplicates and I want to delete the file in the root of the folder. XnView makes the dialog go away, and instead of putting the focus on the file in the thumbnails pane that you just attempted to drag, it puts it on the folder in the folders pane. If you aren't looking - which I usually don't, as I assume XnView has marked the file correctly - and then hit the delete key, the entire folder is deleted instead of the image that you thought you were deleting. For me, XnView puts the focus on the file most of the time, the focus on the folder is a minority of times. In the last 5 minutes, I have dragged 3 files into a folder that had a duplicate of the file being dragged.
File #1: Focus was placed on the root folder.
File #2: Focus was placed on the file I had dragged.
File #3: Focus was place on the root folder.

At least this time, now being aware of this behaviour, I didn't hit the delete key right away (I clicked the image to give it focus and then hit delete). The last time this happened, I lost a few thousand images because XnView deleted the folder instead of the file. Luckily I was able to retrieve them from the Windows recycle bin. Using XnView 1.98 on Win 7 64bit by the way.

Anyway, my theory on why it happens - and I have done some testing and I think this is reasonably reliable in reproducing the problem. If you have the folder in the folders pane highlighted (i.e. you have clicked on it once) and then without clicking once on the image you are dragging, drag that into a folder and there is a duplicate there, the folder is focussed when you click the Skip button (so the folder is highlighted in the folders pane, you then move the mouse and without releasing the left mouse button, you simply click on the image and drag it straight over to the folder). If you however click the image file you are dragging (to highlight it) first, release the mouse button and then click again and drag it into the folder, when you click Skip, the image is focussed. Can anyone reproduce?

If my description is a bit hard to understand, I can always do a video capture of my desktop as I produce the problem if that would help (the actions are quite simple and easy to do, I don't think I've described them very well though).

Regards.
Post Reply