]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinviewcontainer.cpp
style-guide nitpicking :-)
[dolphin.git] / src / dolphinviewcontainer.cpp
index 32d5a407faeb3d2dcea7b08a645a3a1a610f619c..59c2e5e3cd87c6477ddacc1044ff07f58c6ec395 100644 (file)
@@ -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;
         }