GNOME Bugzilla – Bug 598212
Wrong file removed in tree viewer with Move to Trash
Last modified: 2019-03-23 20:47:33 UTC
When using the "Move to Trash" option in the right click menu on the File Browser pane in Gedit, the currently hightlighted file - instead of the file under the right click - is moved to the trash. Steps to reproduce: 1: Create two "New Files" in the File Browser pain. Call them "foo" and "bar". After creating the second one, it should be highlighted. 2: Right click on the unhighlighted file, choose "Move to Trash" Expected behaviour: The file which is right clicked on should be sent to trash. Actual Behaviour: The highlighted file is sent to trash. This actually happens to all the menu items, such as rename. ProblemType: Bug Architecture: amd64 Date: Sun Oct 11 13:52:57 2009 DistroRelease: Ubuntu 9.10 Package: gedit 2.28.0-0ubuntu1 ProcEnviron: PATH=(custom, user) LANG=en_CA.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-13.44-generic SourcePackage: gedit Uname: Linux 2.6.31-13-generic x86_64 Reported downstream: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/449001
Created attachment 146016 [details] [review] Patch for Bug 598212 Hi, I created this patch to change the functionality of the filebrowser plugin to the expected behaviour. What it does is select the item under the cursor if you right click and one or less items is selected in the tree view already. If more than one item is selected it does not change anything. It's my first patch so I expect I've messed something up. Please take a look at it.
Thanks for the patch! I've committed this (with some minor code style modifications) to the current development branch.