mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
e4a438c96c
commit
f936776069
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
|
|||
yearlyStatsModel = new YearlyStatisticsModel();
|
||||
yearlyStats->setModel(yearlyStatsModel);
|
||||
}
|
||||
if (amount_selected == 0)
|
||||
cleanUpEmpty();
|
||||
}
|
||||
|
||||
void MainWindow::recreateDiveList()
|
||||
|
|
Loading…
Add table
Reference in a new issue