diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/divecomputermanagementdialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/divecomputermanagementdialog.cpp b/qt-ui/divecomputermanagementdialog.cpp index af27e914f..348f93b40 100644 --- a/qt-ui/divecomputermanagementdialog.cpp +++ b/qt-ui/divecomputermanagementdialog.cpp @@ -15,8 +15,7 @@ DiveComputerManagementDialog::DiveComputerManagementDialog(QWidget* parent, Qt:: void DiveComputerManagementDialog::init() { - if (model) - delete model; + delete model; model = new DiveComputerModel(dcList.dcMap); ui.tableView->setModel(model); } |