diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-13 19:23:25 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-07 08:56:59 -0700 |
commit | c139c16c03200df23d2089a79fd27d3dd460f0d0 (patch) | |
tree | 93034cf537592c4d74ca687955031587ce0ae804 /desktop-widgets | |
parent | 4ca2b8daea9ea4ab677abcd78e89dec21bc76ed8 (diff) | |
download | subsurface-c139c16c03200df23d2089a79fd27d3dd460f0d0.tar.gz |
cleanup: remove clearing of displayed_dive in MainTab constructor
Clearing displayed_dive here makes no sense for two reasons:
1) This is only called on startup, when displayed_dive is not
yet initialized.
2) The tab-widgets don't use displayed_dive anyway.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/maintab.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index a285abbcd..73ed6127b 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -74,8 +74,6 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), ui.dateEdit->setDisplayFormat(prefs.date_format); ui.timeEdit->setDisplayFormat(prefs.time_format); - memset(&displayed_dive, 0, sizeof(displayed_dive)); - closeMessage(); connect(&diveListNotifier, &DiveListNotifier::divesChanged, this, &MainTab::divesChanged); |