┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-10-05 16:38:00 +0000
committerPeter Penz <[email protected]>2010-10-05 16:38:00 +0000
commit3b2cd9c02e9f92fdc670d06c851f306b83d4124a (patch)
tree1d760459d31c2d8f019a206918dfeff546f50f5e /src/views
parent828ba8902ce16819a385832b487e60eab36e54ca (diff)
Fix minor regression resulted by the previous commit: The m_newName-member may only get updated after the OK-button has been pressed, otherwise renaming a single file fails.
svn path=/trunk/KDE/kdebase/apps/; revision=1182779
Diffstat (limited to 'src/views')
-rw-r--r--src/views/renamedialog.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/views/renamedialog.cpp b/src/views/renamedialog.cpp
index 7f79b0d43..2b56d928b 100644
--- a/src/views/renamedialog.cpp
+++ b/src/views/renamedialog.cpp
@@ -130,6 +130,7 @@ RenameDialog::~RenameDialog()
void RenameDialog::slotButtonClicked(int button)
{
if (button == KDialog::Ok) {
+ m_newName = m_lineEdit->text();
renameItems();
}
@@ -138,9 +139,7 @@ void RenameDialog::slotButtonClicked(int button)
void RenameDialog::slotTextChanged(const QString& newName)
{
- m_newName = m_lineEdit->text();
-
- bool enable = !newName.isEmpty() && (m_renameOneItem ? (newName != m_newName) : newName.contains('#'));
+ bool enable = !newName.isEmpty();
if (enable) {
if (m_renameOneItem) {
enable = enable && (newName != m_newName);