Skip to content

Commit 180d987

Browse files
committed
Merge branch 'omega-hotfix' into omega-master
2 parents 91f7deb + c775598 commit 180d987

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/settings/sub_menu/about_controller.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
2121
I18n::Message childLabel = m_messageTreeModel->children(selectedRow())->label();
2222
/* We hide here the activation hardware test app: in the menu "about", by
2323
* clicking on '6' on the last row. */
24-
if ((event == Ion::Events::Six || event == Ion::Events::LowerT || event == Ion::Events::UpperT) && selectedRow() == numberOfRows() - 1) {
24+
if ((event == Ion::Events::Six || event == Ion::Events::LowerT || event == Ion::Events::UpperT) && childLabel == I18n::Message::FccId) {
2525
Container::activeApp()->displayModalViewController(&m_hardwareTestPopUpController, 0.f, 0.f, Metric::ExamPopUpTopMargin, Metric::PopUpRightMargin, Metric::ExamPopUpBottomMargin, Metric::PopUpLeftMargin);
2626
return true;
2727
}
@@ -34,7 +34,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
3434
return true;
3535
}
3636
if (!(event == Ion::Events::Right)) {
37-
if (m_messageTreeModel->children(selectedRow())->label() == I18n::Message::SoftwareVersion) {
37+
if (childLabel == I18n::Message::SoftwareVersion) {
3838
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
3939
if (strcmp(myCell->accessoryText(), Ion::patchLevel()) == 0) {
4040
myCell->setAccessoryText(Ion::softwareVersion());
@@ -43,7 +43,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
4343
myCell->setAccessoryText(Ion::patchLevel());
4444
return true;
4545
}
46-
if (m_messageTreeModel->children(selectedRow())->label() == I18n::Message::CustomSoftwareVersion) {
46+
if (childLabel == I18n::Message::CustomSoftwareVersion) {
4747
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell();
4848
if (strcmp(myCell->accessoryText(), Ion::customSoftwareVersion()) == 0) {
4949
myCell->setAccessoryText("Public"); //Change for public/dev

0 commit comments

Comments
 (0)