summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divecomputermanagementdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/divecomputermanagementdialog.cpp')
-rw-r--r--desktop-widgets/divecomputermanagementdialog.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/divecomputermanagementdialog.cpp b/desktop-widgets/divecomputermanagementdialog.cpp
index 179a69cfb..f060e3715 100644
--- a/desktop-widgets/divecomputermanagementdialog.cpp
+++ b/desktop-widgets/divecomputermanagementdialog.cpp
@@ -19,8 +19,7 @@ DiveComputerManagementDialog::DiveComputerManagementDialog(QWidget *parent, Qt::
void DiveComputerManagementDialog::init()
{
- model.reset(new DiveComputerModel(dcList.dcMap));
- model->update();
+ model.reset(new DiveComputerModel);
ui.tableView->setModel(model.data());
ui.tableView->resizeColumnsToContents();
ui.tableView->setColumnWidth(DiveComputerModel::REMOVE, 22);
@@ -57,7 +56,6 @@ void DiveComputerManagementDialog::accept()
void DiveComputerManagementDialog::reject()
{
- model->dropWorkingList();
hide();
close();
}