mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[aps/solver] Reset the solution selection when leaving the view
Solve an equation that has solutions, select a solution, then go back and change the equation. WHen you go to the solutions, the previous solution is still selected, which is a little weird
This commit is contained in:
@@ -121,9 +121,11 @@ void SolutionsController::viewWillAppear() {
|
||||
}
|
||||
m_contentView.setWarning(requireWarning);
|
||||
m_contentView.selectableTableView()->reloadData();
|
||||
if (selectedRow() < 0) {
|
||||
selectCellAtLocation(0, 0);
|
||||
}
|
||||
selectCellAtLocation(0, 0);
|
||||
}
|
||||
|
||||
void SolutionsController::viewDidDisappear() {
|
||||
selectCellAtLocation(-1, -1);
|
||||
}
|
||||
|
||||
void SolutionsController::didEnterResponderChain(Responder * previousFirstResponder) {
|
||||
|
||||
Reference in New Issue
Block a user