We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ebe39f commit f9fade6Copy full SHA for f9fade6
ui_widgets/DataSetterFromUi.py
@@ -366,8 +366,14 @@ def set_resource_data_from_ui(self):
366
367
# change resource key to a new alias
368
new_alias = dialog.lineEditResAlias.text()
369
- if res_name in config_data.resources:
370
- config_data.resources[new_alias] = config_data.resources.pop(res_name)
+
+ new_resources = {}
371
+ for k, v in config_data.resources.items():
372
+ if k == res_name:
373
+ new_resources[new_alias] = v
374
+ else:
375
+ new_resources[k] = v
376
+ config_data.resources = new_resources
377
378
def delete_selected_provider_type_and_name(self, list_widget):
379
"""Find and remove first matching resource provider with specified type and name."""
0 commit comments