Bug 297510

Summary: 'Move to trash'/'Delete' in context menu isn't disabled for read-only files
Product: [Applications] dolphin Reporter: Elias Probst <mail>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: emmanuelpescosta099
Priority: NOR    
Version: 2.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.0
Attachments: Screenshot showing the context menu with the not-disabled 'Delete' entry

Description Elias Probst 2012-04-05 07:09:04 UTC
Created attachment 70166 [details]
Screenshot showing the context menu with the not-disabled 'Delete' entry

When a file is ready-only, some options in the context menu (e.g. 'Cut') are disabled.

The action 'Move to trash'/'Delete' isn't disabled, although it should be in this case.

Running Dolphin 2.0 from KDE 4.8.2, Qt 4.8.1, Kernel 3.3.1.

Mounted filesystem:
/dev/sdc1 on /media/MediaDisk type ext4 (rw,nosuid,nodev,uhelper=udisks)

File in question:
-rw-r--r-- 1 root root 299G Dec 15 22:50 /media/MediaDisk/sda.img

See also screenshot in attachment.
Comment 1 Elias Probst 2012-08-02 23:00:31 UTC
Still valid for KDE 4.9.0/Dolphin 2.1
Comment 2 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:18:40 UTC
Resetting assignee to default as per bug #305719
Comment 3 Emmanuel Pescosta 2013-06-22 13:37:12 UTC
Git commit 4cd231838dc84b0fd17431374e9b1b42f55c2c4b by Emmanuel Pescosta. 
Committed on 22/06/2013 at 12:04. 
Pushed by emmanuelp into branch 'master'. 

Update the "Move to Trash" action's and the "Delete" action's 
enabled state in the context menu for read only files/folders (also 
archives). 
FIXED-IN: 4.11 
REVIEW: 111160 

M +2 -1 dolphin/src/dolphinremoveaction.cpp 
M +6 -0 dolphin/src/views/dolphinview.cpp 

http://commits.kde.org/kde-baseapps/4cd231838dc84b0fd17431374e9b1b42f55c2c4b