From a90818671693fd87f7d76c59a68fe1e3262fc32c Mon Sep 17 00:00:00 2001 From: Hugle Date: Wed, 19 Mar 2014 02:08:23 +0800 Subject: Clear PN2 PO2 PHE GasItem After the dive log has been closed, the ProfileWidget2 does not clear the pn2 po2 and ph2 gas line. This patch cleared the three lines after dive log closed. Acked-by: Lubomir I. Ivanov Signed-off-by: Hugle Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/profile') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 90ff5eeba..59d7454ac 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -582,6 +582,9 @@ void ProfileWidget2::setEmptyState() rulerItem->setVisible(false); rulerItem->destNode()->setVisible(false); rulerItem->sourceNode()->setVisible(false); + pn2GasItem->setVisible(false); + po2GasItem->setVisible(false); + pheGasItem->setVisible(false); Q_FOREACH(DiveCalculatedTissue * tissue, allTissues) { tissue->setVisible(false); } -- cgit v1.2.3-70-g09d2