diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp b/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp index caf7c99bf..c078b7e40 100644 --- a/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp +++ b/desktop-widgets/tab-widgets/TabDiveExtraInfo.cpp @@ -1,12 +1,13 @@ // SPDX-License-Identifier: GPL-2.0 #include "TabDiveExtraInfo.h" #include "ui_TabDiveExtraInfo.h" +#include "core/dive.h" #include "qt-models/divecomputerextradatamodel.h" TabDiveExtraInfo::TabDiveExtraInfo(QWidget *parent) : TabBase(parent), ui(new Ui::TabDiveExtraInfo()), - extraDataModel(new ExtraDataModel()) + extraDataModel(new ExtraDataModel(this)) { ui->setupUi(this); ui->extraData->setModel(extraDataModel); @@ -19,11 +20,10 @@ TabDiveExtraInfo::~TabDiveExtraInfo() void TabDiveExtraInfo::updateData() { - extraDataModel->updateDive(); + extraDataModel->updateDiveComputer(current_dc); } void TabDiveExtraInfo::clear() { - extraDataModel->updateDive(); + extraDataModel->clear(); } - |