@@ -21,7 +21,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
21
21
I18n::Message childLabel = m_messageTreeModel->children (selectedRow ())->label ();
22
22
/* We hide here the activation hardware test app: in the menu "about", by
23
23
* 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 ) {
25
25
Container::activeApp ()->displayModalViewController (&m_hardwareTestPopUpController, 0 .f , 0 .f , Metric::ExamPopUpTopMargin, Metric::PopUpRightMargin, Metric::ExamPopUpBottomMargin, Metric::PopUpLeftMargin);
26
26
return true ;
27
27
}
@@ -34,7 +34,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
34
34
return true ;
35
35
}
36
36
if (!(event == Ion::Events::Right)) {
37
- if (m_messageTreeModel-> children ( selectedRow ())-> label () == I18n::Message::SoftwareVersion) {
37
+ if (childLabel == I18n::Message::SoftwareVersion) {
38
38
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell ();
39
39
if (strcmp (myCell->accessoryText (), Ion::patchLevel ()) == 0 ) {
40
40
myCell->setAccessoryText (Ion::softwareVersion ());
@@ -43,7 +43,7 @@ bool AboutController::handleEvent(Ion::Events::Event event) {
43
43
myCell->setAccessoryText (Ion::patchLevel ());
44
44
return true ;
45
45
}
46
- if (m_messageTreeModel-> children ( selectedRow ())-> label () == I18n::Message::CustomSoftwareVersion) {
46
+ if (childLabel == I18n::Message::CustomSoftwareVersion) {
47
47
MessageTableCellWithBuffer * myCell = (MessageTableCellWithBuffer *)m_selectableTableView.selectedCell ();
48
48
if (strcmp (myCell->accessoryText (), Ion::customSoftwareVersion ()) == 0 ) {
49
49
myCell->setAccessoryText (" Public" ); // Change for public/dev
0 commit comments