From 61a015b6f1b98e2573d555141013a41d9e460d87 Mon Sep 17 00:00:00 2001 From: Joachim LF Date: Sat, 6 Feb 2021 09:28:56 +0100 Subject: [PATCH] [Fix] Select last app with incomplete row in home --- apps/home/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/home/controller.cpp b/apps/home/controller.cpp index 8ef92a705..23e2551ba 100644 --- a/apps/home/controller.cpp +++ b/apps/home/controller.cpp @@ -234,7 +234,7 @@ void Controller::tableViewDidChangeSelection(SelectableTableView * t, int previo * (so the previous one is always visible). */ int appIndex = (t->selectedColumn()+t->selectedRow()*k_numberOfColumns)+1; if (appIndex >= this->numberOfIcons()+1) { - t->selectCellAtLocation(previousSelectedCellX, previousSelectedCellY); + t->selectCellAtLocation((this->numberOfIcons()%3)-1, (this->numberOfIcons() / k_numberOfColumns)); } }