Reload the dive list after accepting changes

So far we only did it when we added a dive or modified a manually added
dive. But the reality is that an edit of any dive could cause changes that
require the dive list to be reloaded.

Fixes #698

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-08-07 10:23:08 -07:00
parent f5d9882573
commit ee77398eb8

View file

@ -797,7 +797,7 @@ void MainTab::acceptChanges()
editMode = NONE; editMode = NONE;
MainWindow::instance()->dive_list()->rememberSelection(); MainWindow::instance()->dive_list()->rememberSelection();
sort_table(&dive_table); sort_table(&dive_table);
MainWindow::instance()->refreshDisplay(false); MainWindow::instance()->refreshDisplay();
MainWindow::instance()->dive_list()->restoreSelection(); MainWindow::instance()->dive_list()->restoreSelection();
} }
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::NOTHING); DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::NOTHING);