summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-11-16 18:58:31 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-16 20:24:01 -0800
commitad0aa8cc497fb954b3fd08aa603d24c384fd16de (patch)
tree1c6e4e0ca3d20fb015a09e964ab351c325f449c0 /qt-ui
parent4f1cae7a2fa1ebcf8bcdb86acdc36c73de73f186 (diff)
downloadsubsurface-ad0aa8cc497fb954b3fd08aa603d24c384fd16de.tar.gz
Small code cleanup.
This was bugging me for a while. :) Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp3
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)