Qt: Fix inability to select translated video backend names

This commit is contained in:
Techjar
2018-06-30 04:28:45 -04:00
parent e22c5333ab
commit b59387a65d
2 changed files with 28 additions and 58 deletions

View File

@ -111,8 +111,8 @@ void GraphicsWindow::OnBackendChanged(const QString& backend_name)
}
}
setWindowTitle(tr("%1 Graphics Configuration")
.arg(QString::fromStdString(g_video_backend->GetDisplayName())));
setWindowTitle(
tr("%1 Graphics Configuration").arg(tr(g_video_backend->GetDisplayName().c_str())));
if (backend_name == QStringLiteral("Software Renderer") && m_tab_widget->count() > 1)
{
m_tab_widget->clear();