Qt/GeneralWidget: Add icon and title to the backend switch confirm dialog

This commit is contained in:
spycrab 2018-05-30 01:19:31 +02:00
parent a729c375f3
commit c07b89792d

View File

@ -181,10 +181,11 @@ void GeneralWidget::SaveSettings()
{
if (backend->GetName() == "Software Renderer")
{
QMessageBox confirm_sw;
QMessageBox confirm_sw(this);
confirm_sw.setIcon(QMessageBox::Warning);
confirm_sw.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
confirm_sw.setWindowTitle(tr("Confirm backend change"));
confirm_sw.setText(
tr("Software rendering is an order of magnitude slower than using the "
"other backends.\nIt's only useful for debugging purposes.\nDo you "