]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Test for what the error message says
authorPascal Létourneau <pascal.letourneau@gmail.com>
Sat, 29 Sep 2007 19:01:43 +0000 (19:01 +0000)
committerPascal Létourneau <pascal.letourneau@gmail.com>
Sat, 29 Sep 2007 19:01:43 +0000 (19:01 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=718814

src/renamedialog.cpp

index d4d9e16d1dd35468c79a802dc744068d83ecfe59..4ea15568c6b35399f09d1146b805c34d6f90181c 100644 (file)
@@ -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.");
         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.");
         }