┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/views/renamedialog.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/views/renamedialog.cpp b/src/views/renamedialog.cpp
index 864cfe270..810562a51 100644
--- a/src/views/renamedialog.cpp
+++ b/src/views/renamedialog.cpp
@@ -131,7 +131,16 @@ void RenameDialog::slotButtonClicked(int button)
{
if (button == KDialog::Ok) {
m_newName = m_lineEdit->text();
- renameItems();
+
+ if (m_renameOneItem) {
+ Q_ASSERT(m_items.count() == 1);
+ const KUrl oldUrl = m_items.first().url();
+ KUrl newUrl = oldUrl;
+ newUrl.setFileName(m_newName);
+ KonqOperations::rename(this, oldUrl, newUrl);
+ } else {
+ renameItems();
+ }
}
KDialog::slotButtonClicked(button);