[apps/graph/values] Correct a bug: display the empty table warning when

no function is defined and active

Change-Id: I528d3437d274a08bf55e949c3f79646f71ce72af
This commit is contained in:
Émilie Feral
2016-10-24 11:55:49 +02:00
parent 25a4e619dc
commit 44249956df

View File

@@ -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;
}