From ad0aa8cc497fb954b3fd08aa603d24c384fd16de Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sat, 16 Nov 2013 18:58:31 -0200 Subject: Small code cleanup. This was bugging me for a while. :) Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qt-ui/mainwindow.cpp') 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) -- cgit v1.2.3-70-g09d2