+ const KUrl& oldUrl = m_fileInfo->url();
+ RenameDialog dialog(oldUrl);
+ if (dialog.exec() == QDialog::Accepted) {
+ const QString& newName = dialog.newName();
+ if (!newName.isEmpty()) {
+ KUrl newUrl = oldUrl;
+ newUrl.setFileName(newName);
+ KonqOperations::rename(m_parent, oldUrl, newUrl);
+ }
+ }