diff options
| author | Jeff Mitchell <[email protected]> | 2007-08-14 16:46:06 +0000 |
|---|---|---|
| committer | Jeff Mitchell <[email protected]> | 2007-08-14 16:46:06 +0000 |
| commit | f8fa4e8df155250fa546288caf9bb89b0044f91b (patch) | |
| tree | 099b4c48f97aa5889676b8782f11be8fac6236ae /src/dolphinviewcontainer.cpp | |
| parent | 466ffaabbf6566c1ae582f99403c63978be511fb (diff) | |
When renaming, use the actual name of the item (from the KFileItem) in the dialog.
svn path=/trunk/KDE/kdebase/apps/; revision=700054
Diffstat (limited to 'src/dolphinviewcontainer.cpp')
| -rw-r--r-- | src/dolphinviewcontainer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<KFileItem> 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; } |
