From 0b5e3389e26892a8670e33947f50a5ed1d1a810e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 21 Aug 2014 07:52:14 -0500 Subject: Make sure tank bar button triggers tank bar This worked flawlessly on Mac and Linux, but on Windows I needed to add the explicit setVisible here - not quite sure why. Fixes #710 Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/profile/profilewidget2.cpp') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 675a1029c..bd51b3310 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -580,6 +580,7 @@ void ProfileWidget2::settingsChanged() gasYAxis->setPos(itemPos.partialPressure.pos.on); gasYAxis->animateChangeLine(itemPos.partialPressure.expanded); } + tankItem->setVisible(prefs.tankbar); if (prefs.zoomed_plot != isPlotZoomed) { isPlotZoomed = prefs.zoomed_plot; needReplot = true; -- cgit v1.2.3-70-g09d2