diff options
| author | Peter Penz <[email protected]> | 2007-04-02 05:06:44 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-04-02 05:06:44 +0000 |
| commit | 9339a19e1028093dd746e0d9b21ba9d91e919caa (patch) | |
| tree | 4bc21bab11f62debf52fe4230a5d284bb6c227e7 /src | |
| parent | 056ac9a271f3a8fec02326ed0b478c3a71baaf0c (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/treeviewcontextmenu.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
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() |
