mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix incorrect translation context preventing settings switch
This commit is contained in:
parent
1346c98a58
commit
9436a823ba
|
@ -256,7 +256,7 @@ QString SettingsWindow::getCategory() const
|
||||||
void SettingsWindow::setCategory(const char* category)
|
void SettingsWindow::setCategory(const char* category)
|
||||||
{
|
{
|
||||||
// the titles in the category list will be translated.
|
// 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++)
|
for (int i = 0; i < m_ui.settingsCategory->count(); i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue