From: Peter Penz Date: Mon, 2 Apr 2007 05:06:44 +0000 (+0000) Subject: Use KonqOperations::del() as David suggested. In opposite to the old approach it... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/9339a19e1028093dd746e0d9b21ba9d91e919caa 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 --- 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()