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.
Problems with Paste
Moderators: helmut, XnTriq, xnview, Dreamer
Problems with Paste
m. Th.
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: Problems with Paste
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
and i don't see logical to have paste enabled if paste is not possible
Pierre.
Re: Problems with Paste
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'.xnview wrote:I can't reproduce, often it's disabled?? Are you able to find the program that cause this problem??
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?
Well, neither do I.and i don't see logical to have paste enabled if paste is not possible
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 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: Problems with Paste
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?
It is your code? Qt?
m. Th.
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: Problems with Paste
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.
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 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: Problems with Paste
No, I'm talking about browse mode. Didn't test in View mode.xnview wrote:Paste in view mode??
Paste & import clipboard are enabled
m. Th.
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Re: Problems with Paste
'Import clipboard' is enabled for mem.Th. wrote:No, I'm talking about browse mode. Didn't test in View mode.xnview wrote:Paste in view mode??
Paste & import clipboard are enabled
Pierre.