┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/renamedialog.cpp
diff options
context:
space:
mode:
authorPascal Létourneau <[email protected]>2007-09-29 19:01:43 +0000
committerPascal Létourneau <[email protected]>2007-09-29 19:01:43 +0000
commite4d60190fabfe986a1cec8bef09821c5ee77764d (patch)
tree585d3e3f0495dc51685821a3d6c651ed4886f3d7 /src/renamedialog.cpp
parentdde3998b18a46e1ef064d9207e1177d6b5dec17c (diff)
Test for what the error message says
svn path=/trunk/KDE/kdebase/apps/; revision=718814
Diffstat (limited to 'src/renamedialog.cpp')
-rw-r--r--src/renamedialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renamedialog.cpp b/src/renamedialog.cpp
index d4d9e16d1..4ea15568c 100644
--- a/src/renamedialog.cpp
+++ b/src/renamedialog.cpp
@@ -116,7 +116,7 @@ void RenameDialog::slotButtonClicked(int button)
if (m_newName.isEmpty()) {
m_errorString = i18nc("@info:status",
"The new name is empty. A name with at least one character must be entered.");
- } else if (!m_renameOneItem && m_newName.contains('#') != 1) {
+ } else if (!m_renameOneItem && m_newName.count('#') != 1 ) {
m_newName.truncate(0);
m_errorString = i18nc("@info:status", "The name must contain exactly one # character.");
}