diff --git a/apps/shared/store_controller.cpp b/apps/shared/store_controller.cpp index 2f9b4f256..72ca5aa91 100644 --- a/apps/shared/store_controller.cpp +++ b/apps/shared/store_controller.cpp @@ -171,7 +171,7 @@ void StoreController::didBecomeFirstResponder() { selectCellAtLocation(0, 0); } EditableCellTableViewController::didBecomeFirstResponder(); - app()->setFirstResponder(static_cast(view())); + app()->setFirstResponder(contentView()); } Responder * StoreController::tabController() const { @@ -179,7 +179,7 @@ Responder * StoreController::tabController() const { } SelectableTableView * StoreController::selectableTableView() { - return static_cast(view())->dataView(); + return contentView()->dataView(); } bool StoreController::cellAtLocationIsEditable(int columnIndex, int rowIndex) { diff --git a/apps/shared/store_controller.h b/apps/shared/store_controller.h index 88f895bfc..cddad9805 100644 --- a/apps/shared/store_controller.h +++ b/apps/shared/store_controller.h @@ -80,6 +80,7 @@ protected: StoreParameterController m_storeParameterController; private: bool cellShouldBeTransparent(int i, int j); + ContentView * contentView() { return static_cast(view()); } }; }