From 9339a19e1028093dd746e0d9b21ba9d91e919caa Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 2 Apr 2007 05:06:44 +0000 Subject: Use KonqOperations::del() as David suggested. In opposite to the old approach it's possible now to turn off the confirmation dialog -> provide a way to turn it on again like in Konqi. svn path=/trunk/KDE/kdebase/apps/; revision=649105 --- src/treeviewcontextmenu.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/treeviewcontextmenu.cpp') diff --git a/src/treeviewcontextmenu.cpp b/src/treeviewcontextmenu.cpp index 0c64677fa..f6ed6cdb8 100644 --- a/src/treeviewcontextmenu.cpp +++ b/src/treeviewcontextmenu.cpp @@ -159,14 +159,7 @@ void TreeViewContextMenu::moveToTrash() void TreeViewContextMenu::deleteItem() { - const KUrl& url = m_fileInfo->url(); - const bool del = KonqOperations::askDeleteConfirmation(url, - KonqOperations::DEL, - KonqOperations::FORCE_CONFIRMATION, - m_parent); - if (del) { - KIO::del(url); - } + KonqOperations::del(m_parent, KonqOperations::DEL, m_fileInfo->url()); } void TreeViewContextMenu::showProperties() -- cgit v1.3