mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Test for what the error message says
svn path=/trunk/KDE/kdebase/apps/; revision=718814
This commit is contained in:
parent
dde3998b18
commit
e4d60190fa
|
@ -116,7 +116,7 @@ void RenameDialog::slotButtonClicked(int button)
|
||||||
if (m_newName.isEmpty()) {
|
if (m_newName.isEmpty()) {
|
||||||
m_errorString = i18nc("@info:status",
|
m_errorString = i18nc("@info:status",
|
||||||
"The new name is empty. A name with at least one character must be entered.");
|
"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_newName.truncate(0);
|
||||||
m_errorString = i18nc("@info:status", "The name must contain exactly one # character.");
|
m_errorString = i18nc("@info:status", "The name must contain exactly one # character.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue