From dcd5d0553764dce53138c38ce8dfc50d7f727471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 5 Dec 2017 09:56:55 +0100 Subject: [PATCH] [code] Fixed selection bug in the console history. When clearing the console history, the previously selected cell was not unhighlighted. This sometimes caused a random cell to be highlighted when adding new commands. Change-Id: I393446527fc06d7ae075c21124cb78e09d63ef99 --- apps/code/console_controller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/code/console_controller.cpp b/apps/code/console_controller.cpp index 412f4d6a2..62da1bd0c 100644 --- a/apps/code/console_controller.cpp +++ b/apps/code/console_controller.cpp @@ -124,6 +124,7 @@ bool ConsoleController::handleEvent(Ion::Events::Event event) { } else if (event == Ion::Events::Copy) { return copyCurrentLineToClipboard(); } else if (event == Ion::Events::Clear) { + m_selectableTableView.deselectTable(); m_consoleStore.clear(); m_selectableTableView.reloadData(); m_selectableTableView.selectCellAtLocation(0, m_consoleStore.numberOfLines());