GNOME Bugzilla – Bug 771469
Right click menu active for empty items on list view
Last modified: 2016-09-20 14:46:01 UTC
Right click menu active for empty items on list view. How to reproduce: 1. Enable List view 2. Application menu -> Preferences -> check 'Allow folders to be expanded' 3. Expand some empty folder -> Select item labeled 'Empty' -> Right click Result: The menu is active, and even the 'compress' item can be clicked to compress, which bring up the compress dialog, though does nothing. Expected result: Probably, right click should have no action there.
Created attachment 335622 [details] [review] files-view: don't allow compress if no selection We weren't checking if there is some file selected to enable/disable the compress action, which was causing the context menu item be always displayed if we clicked an element that is not a file. As odd as it sounds, this happens when allow to expand folders in list view, since the "empty" element is selectable but not a file. To fix that, check whether we have a file selected or not.
Attachment 335622 [details] pushed as 858dee7 - files-view: don't allow compress if no selection