From ee4f9494f282533f9e3288c511561fbe32f9df23 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 28 Jan 2015 16:55:55 -0200 Subject: Hide ruler when in ADD or PLAN mode. This ruler shouldn't appear in ADD or PLAN mode, it's a bug and may crash things. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/profile/profilewidget2.cpp') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 2263cbf97..924c800e7 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -507,7 +507,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) // reset some item visibility on printMode changes toolTipItem->setVisible(!printMode); - rulerItem->setVisible(prefs.rulergraph && !printMode); + rulerItem->setVisible(prefs.rulergraph && !printMode && currentState != PLAN && currentState != ADD); if (currentState == EMPTY) setProfileState(); -- cgit v1.2.3-70-g09d2