Qt: Fix auto-detect in BIOS settings being untranslatable

This commit is contained in:
Connor McLaughlin 2020-09-24 00:36:29 +10:00
parent adfd5cb98e
commit fb420bad82

View file

@ -13,8 +13,7 @@ static void populateDropDownForRegion(ConsoleRegion region, QComboBox* cb,
QSignalBlocker sb(cb); QSignalBlocker sb(cb);
cb->clear(); cb->clear();
cb->addItem(QIcon(QStringLiteral(":/icons/system-search.png")), cb->addItem(QIcon(QStringLiteral(":/icons/system-search.png")), qApp->translate("BIOSSettingsWidget", "Auto-Detect"));
QT_TRANSLATE_NOOP("BIOSSettingsWidget", "Auto-Detect"));
std::sort(images.begin(), images.end(), [region](const auto& left, const auto& right) { std::sort(images.begin(), images.end(), [region](const auto& left, const auto& right) {
const bool left_region_match = (left.second && left.second->region == region); const bool left_region_match = (left.second && left.second->region == region);