Try to clear out the profile when dive list is empty

This only partially works. If I start from an empty dive list, plan a
dive, then abort, there are still leftovers in the profile widget.
Hitting Ctrl-W clears that out. But it just runs the same cleanUpEmpty()
again...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-28 10:14:40 -07:00
parent e4a438c96c
commit f936776069

View file

@ -140,6 +140,8 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
yearlyStatsModel = new YearlyStatisticsModel();
yearlyStats->setModel(yearlyStatsModel);
}
if (amount_selected == 0)
cleanUpEmpty();
}
void MainWindow::recreateDiveList()