Qt: Fix incorrect translation context preventing settings switch

This commit is contained in:
Stenzek 2023-12-17 13:53:25 +10:00 committed by Connor McLaughlin
parent 1346c98a58
commit 9436a823ba
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ QString SettingsWindow::getCategory() const
void SettingsWindow::setCategory(const char* category)
{
// the titles in the category list will be translated.
const QString translated_category(qApp->translate("SettingsDialog", category));
const QString translated_category(tr(category));
for (int i = 0; i < m_ui.settingsCategory->count(); i++)
{