From 25a4e619dcd3d8ded01f683b5e3f7c0143495592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 24 Oct 2016 10:39:11 +0200 Subject: [PATCH] [apps/graph/list] Correct how switch view is updated Change-Id: Iabe467f102d7e9f4beb36d48aac0ed86edbf0aff --- apps/graph/list/parameter_controller.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/graph/list/parameter_controller.cpp b/apps/graph/list/parameter_controller.cpp index 3c3e4b974..857655509 100644 --- a/apps/graph/list/parameter_controller.cpp +++ b/apps/graph/list/parameter_controller.cpp @@ -77,9 +77,8 @@ bool ParameterController::handleEnter() { } case 1: { - SwitchView * switchView = (SwitchView *)m_enableCell.contentView(); - switchView->setState(!switchView->state()); m_function->setActive(!m_function->isActive()); + m_listView.reloadData(); return true; } case 2: