summaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configuration_shared.cpp
diff options
context:
space:
mode:
authorlat9nq <lat9nq@virginia.edu>2020-07-13 21:48:56 -0400
committerlat9nq <lat9nq@virginia.edu>2020-07-19 13:26:55 -0400
commit2627241541a2b2bc691c2776f111f95d7bd94c70 (patch)
tree7a66fc7995a60ee3fdd924cc87b9fe552dc18bbc /src/yuzu/configuration/configuration_shared.cpp
parent38152ab0b9678c16c3aa902ddeaad5d437c24237 (diff)
configuration_shared: Use an int instead of a QString
I noticed some of the code could be reduced to just passing the function an int, since I was doing the same thing over and over. Also clang-formats configure_graphics
Diffstat (limited to 'src/yuzu/configuration/configuration_shared.cpp')
-rw-r--r--src/yuzu/configuration/configuration_shared.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configuration_shared.cpp b/src/yuzu/configuration/configuration_shared.cpp
index 28b655222..a648d339b 100644
--- a/src/yuzu/configuration/configuration_shared.cpp
+++ b/src/yuzu/configuration/configuration_shared.cpp
@@ -125,8 +125,8 @@ void ConfigurationShared::InsertGlobalItem(QComboBox* combobox) {
combobox->insertSeparator(ConfigurationShared::USE_GLOBAL_SEPARATOR_INDEX);
}
-void ConfigurationShared::InsertGlobalItem(QComboBox* combobox, const QString& global) {
- const QString use_global_text = ConfigurePerGame::tr("Use global configuration (%1)").arg(global);
+void ConfigurationShared::InsertGlobalItem(QComboBox* combobox, int global_index) {
+ const QString use_global_text = ConfigurePerGame::tr("Use global configuration (%1)").arg(combobox->itemText(global_index));
combobox->insertItem(ConfigurationShared::USE_GLOBAL_INDEX, use_global_text);
combobox->insertSeparator(ConfigurationShared::USE_GLOBAL_SEPARATOR_INDEX);
}