Problems with Paste

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Problems with Paste

Post by m.Th. »

The following bug has most probably the same cause with the still present bug described here: http://newsgroup.xnview.com/viewtopic.php?f=60&t=28691

1. Select some files
2. Right-click and chose Copy (or Cut)
3. Go to another folder and try to chose Paste

Expected: Paste is enabled and choosing it will copy the files

Actual: Paste is disabled

Of course, if one goes in Win Explorer the files are pasted correctly.

Notes: it doesn't show up always. Only "sometimes".

A humble thought: Rather than spending countless hours in finding the cause, perhaps is better to leave the Paste always enabled, like in eg. FastStone Viewer.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Problems with Paste

Post by xnview »

I can't reproduce, often it's disabled?? Are you able to find the program that cause this problem??

and i don't see logical to have paste enabled if paste is not possible
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Problems with Paste

Post by m.Th. »

xnview wrote:I can't reproduce, often it's disabled?? Are you able to find the program that cause this problem??
Yes, quite often. In fact most of the screen-shots which I post here I 'route' them through FastStone Viewer which, incidentally, has the command always 'enabled'.

No, I cannot find which program causes the problem (yet). However I'm not in a total darkness. I think that is something related to the clipboard format and/or some Microsoft Office / Adobe programs. Or perhaps Firefox?
and i don't see logical to have paste enabled if paste is not possible
Well, neither do I.

But it is a pity to work with FastStone Viewer and/or PowerPoint just for this.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Problems with Paste

Post by m.Th. »

Correction: FastStone Viewer doesn't have the Paste always enabled. But somehow it manages to enable it correctly. How do you do it?

It is your code? Qt?
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Problems with Paste

Post by xnview »

Qt
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Problems with Paste

Post by m.Th. »

New things:

This bug can be 100% reproductible:

1. Close XnView MP
2. With the program closed put an image in the clipboard (for example, on Windows press Print Screen)
3. Start XnView MP

Expected:
Import Clipboard should be enabled since is an image in Clipboard

Actual:
Import Clipboard is disabled

What's funny tough, is that the Edit | Paste is enabled (!) but it does nothing.


I think that it would strengthen the code to check if QClipboard::image is null when the application is activated and enable (or not) the Import Clipboard command.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Problems with Paste

Post by xnview »

Paste in view mode??
Paste & import clipboard are enabled
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Problems with Paste

Post by m.Th. »

xnview wrote:Paste in view mode??
Paste & import clipboard are enabled
No, I'm talking about browse mode. Didn't test in View mode.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Problems with Paste

Post by xnview »

m.Th. wrote:
xnview wrote:Paste in view mode??
Paste & import clipboard are enabled
No, I'm talking about browse mode. Didn't test in View mode.
'Import clipboard' is enabled for me
Pierre.
Post Reply