svn path=/trunk/KDE/kdebase/apps/; revision=718814
if (m_newName.isEmpty()) {
m_errorString = i18nc("@info:status",
"The new name is empty. A name with at least one character must be entered.");
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.");
}
m_newName.truncate(0);
m_errorString = i18nc("@info:status", "The name must contain exactly one # character.");
}