Page 1 of 1

Problems with Paste

Posted: Sun Mar 02, 2014 9:30 am
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.

Re: Problems with Paste

Posted: Wed Mar 12, 2014 2:35 pm
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

Re: Problems with Paste

Posted: Wed Mar 12, 2014 4:47 pm
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.

Re: Problems with Paste

Posted: Wed Mar 12, 2014 5:51 pm
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?

Re: Problems with Paste

Posted: Thu Mar 13, 2014 7:38 am
by xnview
Qt

Re: Problems with Paste

Posted: Thu Mar 13, 2014 8:03 am
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.

Re: Problems with Paste

Posted: Thu Mar 13, 2014 2:08 pm
by xnview
Paste in view mode??
Paste & import clipboard are enabled

Re: Problems with Paste

Posted: Thu Mar 13, 2014 3:56 pm
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.

Re: Problems with Paste

Posted: Thu Mar 13, 2014 8:09 pm
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