From c4f8d95a602a35c019c9697ce42d37bc4713148a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 10 Jun 2008 16:23:46 +0000 Subject: Move code for disabling the paste action into DolphinView::pasteInfo() -> Dolphin KPart now also is aware about the disabled paste action. @David: Konqueror hides the paste action in the context menu now, but still the action in the edit menu stays enabled CCMAIL: faure@kde.org svn path=/trunk/KDE/kdebase/apps/; revision=819116 --- src/dolphinmainwindow.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 07011e7a5..57926d33e 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -458,16 +458,6 @@ void DolphinMainWindow::updatePasteAction() QPair pasteInfo = m_activeViewContainer->view()->pasteInfo(); pasteAction->setEnabled(pasteInfo.first); pasteAction->setText(pasteInfo.second); - - if (pasteAction->isEnabled()) { - // disable the paste action if no writing is supported - const KUrl& url = m_activeViewContainer->view()->url(); - KFileItem item(KFileItem::Unknown, KFileItem::Unknown, url); - KFileItemList list; - list.append(item); - KonqFileItemCapabilities capabilities(list); - pasteAction->setEnabled(capabilities.supportsWriting()); - } } void DolphinMainWindow::selectAll() -- cgit v1.3