Merge pull request #7018 from spycrab/qt_confirm_dialog

Qt/GeneralWidget: Add icon and title to the backend switch confirm di…
This commit is contained in:
Mat M 2018-05-29 19:27:07 -04:00 committed by GitHub
commit 7f6ae322ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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 "