[apps/settings] AboutController::m_view should live inside the Settings

app

This fixes the following bug: AboutController::view was built at first
call of "AboutController::view()" but the Settings can be rebuilt later
and the pointers might have moved (hence the ones used in
AboutController::view constructor which is not rebuilt then)
This commit is contained in:
Émilie Feral
2020-02-06 16:21:04 +01:00
committed by Léa Saviot
parent 4d8099e273
commit 3612d25539
6 changed files with 16 additions and 14 deletions

View File

@@ -5,7 +5,8 @@
namespace Settings {
AboutController::AboutController(Responder * parentResponder) :
GenericSubController(parentResponder)
GenericSubController(parentResponder),
m_view(&m_selectableTableView)
{
for (int i = 0; i < k_totalNumberOfCell; i++) {
m_cells[i].setMessageFont(KDFont::LargeFont);