[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
This commit is contained in:
Léa Saviot
2017-12-05 09:56:55 +01:00
parent cc31cbcc52
commit dcd5d05537

View File

@@ -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());