mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Fix dolphin to only enable the Cut context menu option if the file capabilites supportsMoving().
CCBUGS: 161594 Still need to fix Send to trash Context Option in Konqueror svn path=/trunk/KDE/kdebase/apps/; revision=815362
This commit is contained in:
parent
c68112de65
commit
08dfefec38
|
@ -1113,6 +1113,7 @@ void DolphinMainWindow::updateEditActions()
|
||||||
const bool enableMoveToTrash = capabilities.isLocal() && capabilities.supportsMoving();
|
const bool enableMoveToTrash = capabilities.isLocal() && capabilities.supportsMoving();
|
||||||
actionCollection()->action("move_to_trash")->setEnabled(enableMoveToTrash);
|
actionCollection()->action("move_to_trash")->setEnabled(enableMoveToTrash);
|
||||||
actionCollection()->action("delete")->setEnabled(capabilities.supportsDeleting());
|
actionCollection()->action("delete")->setEnabled(capabilities.supportsDeleting());
|
||||||
|
actionCollection()->action(KStandardAction::name(KStandardAction::Cut))->setEnabled(capabilities.supportsMoving());
|
||||||
}
|
}
|
||||||
updatePasteAction();
|
updatePasteAction();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue