1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

Qt: fix stylesheet warning

This commit is contained in:
Megamouse 2018-08-18 15:57:44 +02:00 committed by Ivan
parent 7915dcb23c
commit 7cf82d2511

View File

@ -1232,7 +1232,7 @@ void settings_dialog::AddStylesheets()
}
else
{
LOG_WARNING(GENERAL, "Trying to set an invalid stylesheets index ", index);
LOG_WARNING(GENERAL, "Trying to set an invalid stylesheets index: %d (%s)", index, sstr(m_currentStylesheet));
}
}
@ -1294,7 +1294,7 @@ void settings_dialog::OnApplyConfig()
void settings_dialog::OnApplyStylesheet()
{
m_currentStylesheet = ui->combo_stylesheets->currentText();
m_currentStylesheet = ui->combo_stylesheets->currentData().toString();
xgui_settings->SetValue(gui::m_currentStylesheet, m_currentStylesheet);
Q_EMIT GuiStylesheetRequest(xgui_settings->GetCurrentStylesheetPath());
}