Bug 150501

Summary: pasting from clipboard into a directory in konqueror and choosing pre-existing file name causes two confirmation dialogs
Product: [Applications] konqueror Reporter: Shriramana Sharma <samjnaa>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: faure, jtamate
Priority: NOR Keywords: regression, triaged
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Shriramana Sharma 2007-10-05 14:09:39 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Ubuntu Packages
OS:                Linux

Steps to reproduce:

1. Copy some text from some application to the clipboard
2. Open Konqueror
3. Create a dummy text file in /tmp with name, say foo
4. Attempt to paste the clipboard contents using either Ctrl-V or context menu.
5. You are asked for a filename -- enter foo (or whatever you gave in step 3)
6. A dialog is shown saying:

File Already Exists

A similar file named "/tmp/foo" already exists
The source file is "/tmp"

7. Say "Overwrite"
8. Another dialog is shown saying:

File Already Exists

An older item named "/tmp/foo" already exists
The source file is "/tmp/kd...aa/konquerorCunqha.tmp"

9. We have to say "Overwrite" again to actually overwrite the existing file.

Actual behaviour:

Two dialogs are shown.

Expected behaviour:

Only one dialog should be shown merely saying that an older item already exists and asking me whether I want to overwrite or specify a different file name or cancel.

Notes:

I heard 3.5 branch is no longer maintained, but since I am unable to test whether this bug is there or not in KDE 4 (Konqueror from KDE 4 Live CD 0.4.1 does not have paste feature at all!) I am reporting it anyway. Please change to trunk if appropriate.
Comment 1 Jaime Torres 2008-10-12 10:16:02 UTC
This does not happens in konqueror4, because when I press Ctrl-V to paste the clipboard, it is pasted in the url address bar, and the context menu does not allow such action.
Tested with konqueror 4.1.68.
I'm not sure if this is the desired behavior or not in kde4. 
Comment 2 David Faure 2009-02-25 12:49:03 UTC
"Paste clipboard conetnts" feature restored for KDE-4.3 in r931496.
Now let's see if the bug is still there...
Comment 3 David Faure 2009-02-25 13:34:50 UTC
SVN commit 931524 by dfaure:

Fix handling of "overwrite" when pasting clipboard data. It used to ask twice about overwriting,
showing an ugly tempfilename the 2nd time (which is what the first dialog aimed at avoiding)
BUG: 150501


 M  +15 -4     paste.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=931524