From c139c16c03200df23d2089a79fd27d3dd460f0d0 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 13 Apr 2020 19:23:25 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- desktop-widgets/tab-widgets/maintab.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'desktop-widgets') 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); -- cgit v1.2.3-70-g09d2