From f8fa4e8df155250fa546288caf9bb89b0044f91b Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 14 Aug 2007 16:46:06 +0000 Subject: When renaming, use the actual name of the item (from the KFileItem) in the dialog. svn path=/trunk/KDE/kdebase/apps/; revision=700054 --- src/dolphinviewcontainer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dolphinviewcontainer.cpp') diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp index 32d5a407f..59c2e5e3c 100644 --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -190,10 +190,11 @@ void DolphinViewContainer::renameSelectedItems() { DolphinViewContainer* view = m_mainWindow->activeViewContainer(); const KUrl::List urls = m_view->selectedUrls(); + const QList items = m_view->selectedItems(); if (urls.count() > 1) { // More than one item has been selected for renaming. Open // a rename dialog and rename all items afterwards. - RenameDialog dialog(urls); + RenameDialog dialog(urls, items); if (dialog.exec() == QDialog::Rejected) { return; } @@ -238,7 +239,7 @@ void DolphinViewContainer::renameSelectedItems() // TODO: Think about using KFileItemDelegate as soon as it supports editing. // Currently the RenameDialog is used, but I'm not sure whether inline renaming // is a benefit for the user at all -> let's wait for some input first... - RenameDialog dialog(urls); + RenameDialog dialog(urls, items); if (dialog.exec() == QDialog::Rejected) { return; } -- cgit v1.3