From a43646715245a95aa2e75703ca950cc8e4accb92 Mon Sep 17 00:00:00 2001 From: german77 Date: Sun, 22 Jan 2023 01:35:28 -0600 Subject: yuzu: Fix language comobox crash --- src/yuzu/configuration/configuration_shared.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/yuzu/configuration/configuration_shared.h') diff --git a/src/yuzu/configuration/configuration_shared.h b/src/yuzu/configuration/configuration_shared.h index e597dcdb5..04c88758c 100644 --- a/src/yuzu/configuration/configuration_shared.h +++ b/src/yuzu/configuration/configuration_shared.h @@ -69,4 +69,7 @@ void SetColoredComboBox(QComboBox* combobox, QWidget* target, int global); // Adds the "Use Global Configuration" selection and separator to the beginning of a QComboBox void InsertGlobalItem(QComboBox* combobox, int global_index); +// Returns the correct index of a QComboBox taking into account global configuration +int GetComboboxIndex(int global_setting_index, const QComboBox* combobox); + } // namespace ConfigurationShared -- cgit v1.2.3