From 56501dda1e56f32be98bf4dc475411c56dd223da Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 2 Jul 2014 14:15:17 -0700 Subject: UI restructure: updateDiveInfo displays displayed_dive Instead of passing in a divenr of -1 to make it clear things this changes things to use an options "clear" flag. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 219d14803..04f94671b 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -217,7 +217,7 @@ void MainWindow::cleanUpEmpty() ui.InfoWidget->clearStats(); ui.InfoWidget->clearInfo(); ui.InfoWidget->clearEquipment(); - ui.InfoWidget->updateDiveInfo(-1); + ui.InfoWidget->updateDiveInfo(true); ui.newProfile->setEmptyState(); ui.ListWidget->reload(DiveTripModel::TREE); ui.globe->reload(); -- cgit v1.2.3-70-g09d2