After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 549437 - ctrl + drag & drop file duplication does not work in list view
ctrl + drag & drop file duplication does not work in list view
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.22.x
Other All
: Normal minor
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-26 14:21 UTC by Jakob Unterwurzacher
Modified: 2009-05-11 08:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
bug demonstration (958.90 KB, video/ogg)
2008-12-29 00:53 UTC, Kamil Páral
  Details
Patch (596 bytes, patch)
2009-01-25 09:54 UTC, logari81
committed Details | Review

Description Jakob Unterwurzacher 2008-08-26 14:21:27 UTC
Please describe the problem:
This is on Ubuntu Hardy.

This is what *should* happen (it works in symbol view in nautilus or at the desktop):
* Create a file, "foo.txt".
* Drag it, then drop it to the same window while holding Ctrl (cursor changes to copy cursor).
* A copy of the file, "foo (copy).txt" is created.

This is what happens in list view:
* The cursor changes to the copy cursor (plus sign) when Ctrl+dragging.
* When you drop the file to the same window, nothing happens.
* When you drop the file to the same folder open in another window, nothing happens.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?
Yes.

Other information:
Bug is also reported in Ubuntu launchpad: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/261108
Comment 1 Kamil Páral 2008-12-29 00:46:42 UTC
I can confirm this issue is Gnome 2.24.1.
Dragging and dropping using the middle mouse button also does not work. Ctrl+C Ctrl+V does work.
Comment 2 Kamil Páral 2008-12-29 00:53:32 UTC
Created attachment 125460 [details]
bug demonstration
Comment 3 logari81 2009-01-25 09:54:38 UTC
Created attachment 127189 [details] [review]
Patch

The altered if-case in the patch used to prevent from dropping an item in the source folder for list-view in general. The new if-check prevents from dropping an item to the source folder just for move operations in list-view. Creating a copy or a link of the dragged item in the same folder is now permitted like in icon-view.
Comment 4 A. Walton 2009-01-25 12:02:09 UTC
Patch works and looks fine to me. Would be nice to have a name to credit it to before we commit it though.
Comment 5 logari81 2009-01-25 12:45:34 UTC
you can just use my nick "logari81", if you want
Comment 6 Cosimo Cecchi 2009-03-05 14:27:08 UTC
Setting patch status to reflect comment #4.
It's anyway too late in the cycle now to commit this, so you should commit it after branching.
Comment 7 André Klapper 2009-05-03 19:34:12 UTC
(In reply to comment #6)
> Setting patch status to reflect comment #4.
> It's anyway too late in the cycle now to commit this, so you should commit it
> after branching.

Now that nautilus has branched, can this please get committed to master?
Comment 8 A. Walton 2009-05-11 08:42:11 UTC
Pushed this to master. Closing as FIXED. Thanks for the patch logari81.