From: George Goldberg Date: Sun, 1 Jun 2008 15:16:27 +0000 (+0000) Subject: Fix dolphin to only enable the Cut context menu option if the file capabilites suppor... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/08dfefec38e2f6af3c199a3db947e8dcc55993b6?ds=sidebyside 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 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 85ff9f7f5..41e7cd309 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1113,6 +1113,7 @@ void DolphinMainWindow::updateEditActions() const bool enableMoveToTrash = capabilities.isLocal() && capabilities.supportsMoving(); actionCollection()->action("move_to_trash")->setEnabled(enableMoveToTrash); actionCollection()->action("delete")->setEnabled(capabilities.supportsDeleting()); + actionCollection()->action(KStandardAction::name(KStandardAction::Cut))->setEnabled(capabilities.supportsMoving()); } updatePasteAction(); }