1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

patch_manager: set config_key_role to current key after handle_item_selected

The key was never changed if you selected different configurables in the same item.
This means that all configurables used the same value list.
This commit is contained in:
Megamouse 2024-09-03 23:23:30 +02:00
parent ad1eb93a05
commit 23f9eb57e5
2 changed files with 8 additions and 5 deletions

View File

@ -670,7 +670,7 @@ void patch_manager_dialog::handle_item_selected(QTreeWidgetItem *current, QTreeW
// Update the config value combo box with the new config keys
ui->configurable_selector->blockSignals(true);
ui->configurable_selector->clear();
for (const auto& key : info.config_values.keys())
for (const QString& key : info.config_values.keys())
{
const QVariant& variant = info.config_values.value(key);
ensure(variant.canConvert<patch_engine::patch_config_value>());
@ -708,6 +708,9 @@ void patch_manager_dialog::handle_item_selected(QTreeWidgetItem *current, QTreeW
}
update_patch_info(info);
const QString key = ui->configurable_selector->currentIndex() < 0 ? "" : ui->configurable_selector->currentData().toString();
current->setData(0, config_key_role, key);
}
void patch_manager_dialog::handle_item_changed(QTreeWidgetItem* item, int /*column*/)