mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12: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:
parent
ad1eb93a05
commit
23f9eb57e5
2 changed files with 8 additions and 5 deletions
|
@ -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
|
// Update the config value combo box with the new config keys
|
||||||
ui->configurable_selector->blockSignals(true);
|
ui->configurable_selector->blockSignals(true);
|
||||||
ui->configurable_selector->clear();
|
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);
|
const QVariant& variant = info.config_values.value(key);
|
||||||
ensure(variant.canConvert<patch_engine::patch_config_value>());
|
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);
|
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*/)
|
void patch_manager_dialog::handle_item_changed(QTreeWidgetItem* item, int /*column*/)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue