From 44249956df6e9ea16564b4f0c8d10e99e13efca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 24 Oct 2016 11:55:49 +0200 Subject: [PATCH] [apps/graph/values] Correct a bug: display the empty table warning when no function is defined and active Change-Id: I528d3437d274a08bf55e949c3f79646f71ce72af --- apps/graph/values/values_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/graph/values/values_controller.cpp b/apps/graph/values/values_controller.cpp index a9b48a753..e95c2dc2e 100644 --- a/apps/graph/values/values_controller.cpp +++ b/apps/graph/values/values_controller.cpp @@ -188,7 +188,7 @@ ValueCell * ValuesController::abscisseCellAtRow(int rowIndex) { } void ValuesController::didBecomeFirstResponder() { - if (m_functionStore->numberOfActiveFunctions() == 0) { + if (m_functionStore->numberOfDefinedFunctions() == 0 || m_functionStore->numberOfActiveFunctions() == 0) { m_contentView.setTableState(ValuesController::ContentView::TableState::Empty); return; }