Fix graphicsAPI cvar

This commit is contained in:
Phillip Stephens 2018-01-15 07:59:25 -08:00
parent bf1e342bc4
commit b4972dbad9
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ void LaunchMenu::initDeveloperMode()
void LaunchMenu::apiTriggered()
{
m_commons.setGraphicsApi(qobject_cast<QAction*>(sender())->text().toStdString());
QString apiStr = qobject_cast<QAction*>(sender())->text();
apiStr = apiStr.remove('&');
m_commons.setGraphicsApi(apiStr.toStdString());
m_commons.serialize();
}