mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:13:25 +00:00
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>
This commit is contained in:
parent
4ca2b8daea
commit
c139c16c03
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue