diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 10:14:40 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-28 10:16:00 -0700 |
commit | f936776069de719ec545f2862cda411e41ef1d46 (patch) | |
tree | c3c5443624f1f76086dd01705720ec94cb619a0b /qt-ui | |
parent | e4a438c96cbf4e5df2933e85f68c7c0ba4516435 (diff) | |
download | subsurface-f936776069de719ec545f2862cda411e41ef1d46.tar.gz |
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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 8b012da90..ff932d31b 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -140,6 +140,8 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList) yearlyStatsModel = new YearlyStatisticsModel(); yearlyStats->setModel(yearlyStatsModel); } + if (amount_selected == 0) + cleanUpEmpty(); } void MainWindow::recreateDiveList() |