From e4d60190fabfe986a1cec8bef09821c5ee77764d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pascal=20L=C3=A9tourneau?= Date: Sat, 29 Sep 2007 19:01:43 +0000 Subject: [PATCH] Test for what the error message says svn path=/trunk/KDE/kdebase/apps/; revision=718814 --- src/renamedialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."); } -- 2.47.3