mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Allow moving items to trash also for non-local files
See bug 188032 for an ongoing discussion. In case if this behavior is really not wanted by users (the feedback on bugs.kde.org will show), the review-request https://git.reviewboard.kde.org/r/104915/ should be merged too (after adjusting some parts of the code).
This commit is contained in:
parent
73c30c7ea2
commit
b319c59b8d
|
@ -559,7 +559,7 @@ void DolphinContextMenu::updateRemoveAction()
|
|||
|
||||
bool DolphinContextMenu::moveToTrash() const
|
||||
{
|
||||
return selectedItemsProperties().isLocal() && !m_shiftPressed;
|
||||
return !m_shiftPressed;
|
||||
}
|
||||
|
||||
#include "dolphincontextmenu.moc"
|
||||
|
|
|
@ -176,8 +176,8 @@ private:
|
|||
void updateRemoveAction();
|
||||
|
||||
/**
|
||||
* @return True if no shift key has been pressed and the selection represents
|
||||
* only local files.
|
||||
* @return True if a moving to the trash should be done instead of
|
||||
* deleting the selected items.
|
||||
* @see updateRemoveAction(), slotRemoveActionTriggered()
|
||||
*/
|
||||
bool moveToTrash() const;
|
||||
|
|
Loading…
Reference in a new issue