diff --git a/src/citra_qt/compatdb.cpp b/src/citra_qt/compatdb.cpp index 8bee64b05c..a3e6ba3e21 100644 --- a/src/citra_qt/compatdb.cpp +++ b/src/citra_qt/compatdb.cpp @@ -33,12 +33,12 @@ void CompatDB::Submit() { compatibility->addButton(ui->radioButton_IntroMenu, 4); compatibility->addButton(ui->radioButton_WontBoot, 5); switch (currentId()) { - case 1: + case CompatDBPage::SelectionPage: if (compatibility->checkedId() == -1) { button(NextButton)->setEnabled(false); } break; - case 2: + case CompatDBPage::FinalPage: LOG_DEBUG(Frontend, "Compatibility Rating: %d", compatibility->checkedId()); Core::Telemetry().AddField(Telemetry::FieldType::UserFeedback, "Compatibility", compatibility->checkedId()); @@ -46,6 +46,8 @@ void CompatDB::Submit() { // workaround button(QWizard::CancelButton)->setVisible(false); break; + default: + LOG_ERROR(Frontend, "Unexpected page: %d", currentId()); } } diff --git a/src/citra_qt/compatdb.h b/src/citra_qt/compatdb.h index 0a0f27cca5..dfc259b4fa 100644 --- a/src/citra_qt/compatdb.h +++ b/src/citra_qt/compatdb.h @@ -25,3 +25,5 @@ private slots: void Submit(); void EnableNext(); }; + +enum CompatDBPage { IntroPage = 0, SelectionPage = 1, FinalPage = 2 };