diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-15 20:59:13 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-16 08:29:53 -0800 |
commit | 8a33c04894d6830885d7f47140962d5fdafd648f (patch) | |
tree | ad14b83881042f4d9ec2f6dcdcc2db5d9a81fb43 /desktop-widgets/tab-widgets/maintab.ui | |
parent | f0a89759bf38375d32ad70ba4710a98d30a47e5d (diff) | |
download | subsurface-8a33c04894d6830885d7f47140962d5fdafd648f.tar.gz |
Cleanup: use DiveTripModelBase::clear() to reset the log
Introduce a DiveTripModelBase::clear() function that cleanly
clears all dive data inside a beginResetModel()/endResetModel()
pair. Thus, the UI will be cleanly reset and we can remove
explicit calls to
- graphics->setEmptyState()
- mainTab->clearTabs()
- mainTab->clearTabs()
- diveList->reload()
from MainWindow::closeCurrentFile().
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.ui')
0 files changed, 0 insertions, 0 deletions