From 354564b9d978718f2b945300979147b3703cbcb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 17 Feb 2017 13:10:28 +0100 Subject: [PATCH] [apps/sequence] Fix bug: correct "ajouter suite" button color Change-Id: I9e0503d2235475c511049b638fc091ed0b5f2bc3 --- apps/sequence/list/list_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sequence/list/list_controller.cpp b/apps/sequence/list/list_controller.cpp index 50294dfc2..a2eec847c 100644 --- a/apps/sequence/list/list_controller.cpp +++ b/apps/sequence/list/list_controller.cpp @@ -226,7 +226,7 @@ int ListController::sequenceIndexForRow(int j) { } if (m_sequenceStore->numberOfFunctions() < m_sequenceStore->maxNumberOfFunctions() && j == numberOfRows() - 1) { - return j; + return sequenceIndexForRow(j-1)+1; } int rowIndex = 0; int sequenceIndex = -1;