From: Pascal Létourneau Date: Sat, 29 Sep 2007 19:01:43 +0000 (+0000) Subject: Test for what the error message says X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/e4d60190fabfe986a1cec8bef09821c5ee77764d?ds=inline Test for what the error message says svn path=/trunk/KDE/kdebase/apps/; revision=718814 --- 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."); }