Fix change current user name failed.
This commit is contained in:
@@ -191,13 +191,14 @@ bool AccountFormDialog::updateReferenceData()
|
||||
warn(tr("User Name can't be empty!"));
|
||||
return false;
|
||||
}
|
||||
User::Current()->setUserName(mNewUserName);
|
||||
}
|
||||
if (!this->mCommentChanged) User::Current()->setUserName(mLeComment->text());
|
||||
User::Current()->setUserName(mNewUserName);
|
||||
bool ret = User::Current()->submitChange();
|
||||
if (ret)
|
||||
{
|
||||
hideWarn();
|
||||
EventCenter::Default()->triggerEvent(CurrentUserNameChanged, nullptr, nullptr);
|
||||
LOG_USER_OPERATION("Change User Name")
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user