From 96fa53156651b69cb8a2afa1e3ea90261c9ac311 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 7 May 2021 22:10:29 +0200 Subject: [PATCH] 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. --- rpcs3/rpcs3qt/user_manager_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/rpcs3qt/user_manager_dialog.cpp b/rpcs3/rpcs3qt/user_manager_dialog.cpp index 490e089aa6..453aa02751 100644 --- a/rpcs3/rpcs3qt/user_manager_dialog.cpp +++ b/rpcs3/rpcs3qt/user_manager_dialog.cpp @@ -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); };