Ignore sorting on ranged combobox and log message

This commit is contained in:
Jordy Vieira 2019-04-14 10:37:04 -03:00 committed by Ivan
parent bad0415f05
commit f995771143

View file

@ -254,6 +254,11 @@ void emu_settings::EnhanceComboBox(QComboBox* combobox, SettingsType type, bool
if (is_ranged) if (is_ranged)
{ {
if (sorted)
{
LOG_WARNING(GENERAL, "EnhanceCombobox '%s': ignoring sorting request on ranged combo box", GetSettingName(type));
}
QStringList range = GetSettingOptions(type); QStringList range = GetSettingOptions(type);
int max_item = use_max ? max : range.last().toInt(); int max_item = use_max ? max : range.last().toInt();