diff options
-rw-r--r-- | qt-ui/mainwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 31e1d64f0..6ed04911d 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -73,8 +73,7 @@ void MainWindow::refreshDisplay(bool recreateDiveList) if (recreateDiveList) ui.ListWidget->reload(DiveTripModel::CURRENT); ui.ListWidget->setFocus(); - WSInfoModel *wsim = WSInfoModel::instance(); - wsim->updateInfo(); + WSInfoModel::instance()->updateInfo(); } void MainWindow::current_dive_changed(int divenr) |