Make pp graphs visible at startup according to settings

Changeset a90818671 introduces a small inconvenience. The pp graphs at
startup are not shown according to the visibility settings. Requiring to
toggle the icons to show the desired pp graph.

Trivial fix.

Signed-off-by: Jan Mulder <jlmulder@planet.nl>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Jan Mulder 2014-03-21 18:55:33 +01:00 committed by Dirk Hohndel
parent 8ca4437624
commit 41209005c9

View file

@ -625,6 +625,9 @@ void ProfileWidget2::setProfileState()
temperatureAxis->setLine(itemPos.temperature.expanded); temperatureAxis->setLine(itemPos.temperature.expanded);
cylinderPressureAxis->setLine(itemPos.cylinder.expanded); cylinderPressureAxis->setLine(itemPos.cylinder.expanded);
} }
pn2GasItem->setVisible(s.value("pn2graph").toBool());
po2GasItem->setVisible(s.value("po2graph").toBool());
pheGasItem->setVisible(s.value("phegraph").toBool());
gasYAxis->setPos(itemPos.partialPressure.pos.on); gasYAxis->setPos(itemPos.partialPressure.pos.on);
gasYAxis->setLine(itemPos.partialPressure.expanded); gasYAxis->setLine(itemPos.partialPressure.expanded);