Skip to content

Commit

Permalink
Fixed|UI: Changing just the letter case of a profile name
Browse files Browse the repository at this point in the history
IssueID #2362
  • Loading branch information
skyjake committed Dec 5, 2019
1 parent 77891d4 commit ecd7f0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -130,7 +130,7 @@ DENG_GUI_PIMPL(CreateProfileDialog)
String const entry = self().profileName();
if (!entry.isEmpty())
{
if (editing && oldName == entry)
if (editing && !oldName.compareWithoutCase(entry))
{
valid = true;
}
Expand Down
4 changes: 3 additions & 1 deletion doomsday/sdk/libcore/src/data/profiles.cpp
Expand Up @@ -401,7 +401,9 @@ bool Profiles::AbstractProfile::setName(String const &newName)
if (newName.isEmpty()) return false;

Profiles *owner = d->owner;
if (!owner || owner->rename(*this, newName))
if (!owner ||
!d->name.compareWithoutCase(newName) || // just a case change
owner->rename(*this, newName))
{
d->name = newName;
notifyChange();
Expand Down

0 comments on commit ecd7f0b

Please sign in to comment.