Qt: allow renaming of the current user

Since the dialog cannot be opened ingame, there should be no reason to disable the rename user option.
This commit is contained in:
Megamouse 2021-05-07 22:10:29 +02:00
parent 64997662d2
commit 96fa531566

View File

@ -103,7 +103,7 @@ void user_manager_dialog::Init()
restoreGeometry(m_gui_settings->GetValue(gui::um_geometry).toByteArray());
// Use this in multiple connects to protect the current user from deletion/rename.
const auto enable_buttons = [=, this]()
const auto enable_buttons = [=]()
{
const u32 key = GetUserKey();
if (key == 0)
@ -117,7 +117,7 @@ void user_manager_dialog::Init()
const bool enable = m_user_list[key].GetUserId() != m_active_user;
push_login_user->setEnabled(enable);
push_rename_user->setEnabled(enable);
push_rename_user->setEnabled(true);
push_remove_user->setEnabled(enable);
};