Skip to content

Commit

Permalink
GLideNUI: fix Qt6 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 authored and gonetz committed Dec 12, 2022
1 parent 27769dc commit c0148d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GLideNUI/ConfigDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,8 @@ void ConfigDialog::on_buttonBox_clicked(QAbstractButton *button)
QMessageBox::RestoreDefaults | QMessageBox::Cancel, this
);
msgBox.setDefaultButton(QMessageBox::Cancel);
msgBox.setButtonText(QMessageBox::RestoreDefaults, tr("Restore Defaults"));
msgBox.setButtonText(QMessageBox::Cancel, tr("Cancel"));
msgBox.button(QMessageBox::RestoreDefaults)->setText(tr("Restore Defaults"));
msgBox.button(QMessageBox::Cancel)->setText(tr("Cancel"));
if (msgBox.exec() == QMessageBox::RestoreDefaults) {
const u32 enableCustomSettings = config.generalEmulation.enableCustomSettings;
resetSettings(m_strIniPath);
Expand Down Expand Up @@ -1125,8 +1125,8 @@ void ConfigDialog::on_removeProfilePushButton_clicked()
QMessageBox msgBox(QMessageBox::Warning, tr("Remove Profile"),
msg, QMessageBox::Yes | QMessageBox::Cancel, this);
msgBox.setDefaultButton(QMessageBox::Cancel);
msgBox.setButtonText(QMessageBox::Yes, tr("Remove"));
msgBox.setButtonText(QMessageBox::No, tr("Cancel"));
msgBox.button(QMessageBox::Yes)->setText(tr("Remove"));
msgBox.button(QMessageBox::Cancel)->setText(tr("Cancel"));
if (msgBox.exec() == QMessageBox::Yes) {
removeProfile(m_strIniPath, profile);
ui->profilesComboBox->blockSignals(true);
Expand Down

0 comments on commit c0148d9

Please sign in to comment.