diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/divecomputermanagementdialog.cpp | 4 | ||||
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 |
2 files changed, 2 insertions, 4 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(); } diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 1e7b28ab0..95efcca63 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -770,7 +770,7 @@ void MainWindow::closeCurrentFile() clear_events(); - dcList.dcMap.clear(); + dcList.dcs.clear(); } void MainWindow::updateCloudOnlineStatus() |