Skip to content
Snippets Groups Projects
Commit a97120ef authored by Lioncash's avatar Lioncash
Browse files

yuzu/compatdb: Remove unnecessary qualifiers

Keeps the code consistent in regards to how the buttons are referred to.
parent 75a8b304
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ void CompatDB::Submit() { ...@@ -58,7 +58,7 @@ void CompatDB::Submit() {
button(NextButton)->setEnabled(false); button(NextButton)->setEnabled(false);
button(NextButton)->setText(tr("Submitting")); button(NextButton)->setText(tr("Submitting"));
button(QWizard::CancelButton)->setVisible(false); button(CancelButton)->setVisible(false);
testcase_watcher.setFuture(QtConcurrent::run( testcase_watcher.setFuture(QtConcurrent::run(
[] { return Core::System::GetInstance().TelemetrySession().SubmitTestcase(); })); [] { return Core::System::GetInstance().TelemetrySession().SubmitTestcase(); }));
...@@ -74,12 +74,12 @@ void CompatDB::OnTestcaseSubmitted() { ...@@ -74,12 +74,12 @@ void CompatDB::OnTestcaseSubmitted() {
tr("An error occured while sending the Testcase")); tr("An error occured while sending the Testcase"));
button(NextButton)->setEnabled(true); button(NextButton)->setEnabled(true);
button(NextButton)->setText(tr("Next")); button(NextButton)->setText(tr("Next"));
button(QWizard::CancelButton)->setVisible(true); button(CancelButton)->setVisible(true);
} else { } else {
next(); next();
// older versions of QT don't support the "NoCancelButtonOnLastPage" option, this is a // older versions of QT don't support the "NoCancelButtonOnLastPage" option, this is a
// workaround // workaround
button(QWizard::CancelButton)->setVisible(false); button(CancelButton)->setVisible(false);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment